⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 700-nios2-2.15.patch

📁 這是一個實時嵌入式作業系統 實作了MCS51 ARM等MCU
💻 PATCH
📖 第 1 页 / 共 5 页
字号:
--- binutils-2.15/bfd/Makefile.am	2004-05-17 21:35:56.000000000 +0200+++ binutils-2.15-nios2/bfd/Makefile.am	2005-05-17 12:20:13.000000000 +0200@@ -82,6 +82,7 @@ ALL_MACHINES = \ 	cpu-mips.lo \ 	cpu-mmix.lo \ 	cpu-msp430.lo \+	cpu-nios2.lo \ 	cpu-or32.lo \ 	cpu-ns32k.lo \ 	cpu-openrisc.lo \@@ -139,6 +140,7 @@ ALL_MACHINES_CFILES = \ 	cpu-msp430.c \ 	cpu-or32.c \ 	cpu-ns32k.c \+	cpu-nios2.c \ 	cpu-openrisc.c \ 	cpu-pdp11.c \ 	cpu-pj.c \@@ -241,6 +243,7 @@ BFD32_BACKENDS = \ 	elfxx-mips.lo \ 	elf32-mips.lo \ 	elf32-msp430.lo \+	elf32-nios2.lo \ 	elf32-openrisc.lo \ 	elf32-or32.lo \ 	elf32-pj.lo \@@ -405,6 +408,7 @@ BFD32_BACKENDS_CFILES = \ 	elfxx-mips.c \ 	elf32-mips.c \ 	elf32-msp430.c \+	elf32-nios2.c \ 	elf32-openrisc.c \ 	elf32-or32.c \ 	elf32-pj.c \@@ -943,6 +947,7 @@ cpu-mcore.lo: cpu-mcore.c $(INCDIR)/file cpu-mips.lo: cpu-mips.c $(INCDIR)/filenames.h cpu-mmix.lo: cpu-mmix.c $(INCDIR)/filenames.h cpu-msp430.lo: cpu-msp430.c $(INCDIR)/filenames.h+cpu-nios2.lo: cpu-nios2.c $(INCDIR)/filenames.h cpu-or32.lo: cpu-or32.c $(INCDIR)/filenames.h cpu-ns32k.lo: cpu-ns32k.c $(INCDIR)/filenames.h ns32k.h cpu-openrisc.lo: cpu-openrisc.c $(INCDIR)/filenames.h@@ -1250,6 +1255,10 @@ elf32-msp430.lo: elf32-msp430.c $(INCDIR   $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \   $(INCDIR)/elf/msp430.h $(INCDIR)/elf/reloc-macros.h \   elf32-target.h+elf32-nios2.lo: elf32-nios2.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \+  genlink.h elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \+  $(INCDIR)/elf/external.h $(INCDIR)/elf/nios2.h \+  $(INCDIR)/elf/reloc-macros.h elf32-target.h elf32-openrisc.lo: elf32-openrisc.c $(INCDIR)/filenames.h \   elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \   $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/openrisc.h \--- binutils-2.15/bfd/Makefile.in	2004-05-17 21:35:56.000000000 +0200+++ binutils-2.15-nios2/bfd/Makefile.in	2005-05-17 12:20:13.000000000 +0200@@ -210,6 +210,7 @@ ALL_MACHINES = \ 	cpu-mips.lo \ 	cpu-mmix.lo \ 	cpu-msp430.lo \+	cpu-nios2.lo \ 	cpu-or32.lo \ 	cpu-ns32k.lo \ 	cpu-openrisc.lo \@@ -267,6 +268,7 @@ ALL_MACHINES_CFILES = \ 	cpu-mmix.c \ 	cpu-msp430.c \ 	cpu-or32.c \+	cpu-nios2.c \ 	cpu-ns32k.c \ 	cpu-openrisc.c \ 	cpu-pdp11.c \@@ -371,6 +373,7 @@ BFD32_BACKENDS = \ 	elfxx-mips.lo \ 	elf32-mips.lo \ 	elf32-msp430.lo \+	elf32-nios2.lo \ 	elf32-openrisc.lo \ 	elf32-or32.lo \ 	elf32-pj.lo \@@ -536,6 +539,7 @@ BFD32_BACKENDS_CFILES = \ 	elfxx-mips.c \ 	elf32-mips.c \ 	elf32-msp430.c \+	elf32-nios2.c \ 	elf32-openrisc.c \ 	elf32-or32.c \ 	elf32-pj.c \@@ -1482,6 +1486,7 @@ cpu-mmix.lo: cpu-mmix.c $(INCDIR)/filena cpu-msp430.lo: cpu-msp430.c $(INCDIR)/filenames.h cpu-or32.lo: cpu-or32.c $(INCDIR)/filenames.h cpu-ns32k.lo: cpu-ns32k.c $(INCDIR)/filenames.h ns32k.h+cpu-nios2.lo: cpu-nios2.c $(INCDIR)/filenames.h cpu-openrisc.lo: cpu-openrisc.c $(INCDIR)/filenames.h cpu-pdp11.lo: cpu-pdp11.c $(INCDIR)/filenames.h cpu-pj.lo: cpu-pj.c $(INCDIR)/filenames.h@@ -1787,6 +1792,10 @@ elf32-msp430.lo: elf32-msp430.c $(INCDIR   $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \   $(INCDIR)/elf/msp430.h $(INCDIR)/elf/reloc-macros.h \   elf32-target.h+elf32-nios2.lo: elf32-nios2.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \+  genlink.h elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \+  $(INCDIR)/elf/external.h $(INCDIR)/elf/nios2.h \+  $(INCDIR)/elf/reloc-macros.h elf32-target.h elf32-openrisc.lo: elf32-openrisc.c $(INCDIR)/filenames.h \   elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \   $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/openrisc.h \--- binutils-2.15/bfd/archures.c	2003-12-03 18:38:48.000000000 +0100+++ binutils-2.15-nios2/bfd/archures.c	2005-05-17 12:20:13.000000000 +0200@@ -330,6 +330,8 @@ DESCRIPTION .#define bfd_mach_msp44          44 .  bfd_arch_xtensa,    {* Tensilica's Xtensa cores.  *} .#define bfd_mach_xtensa	1+.  bfd_arch_nios2,+.#define bfd_mach_nios2			   1 .  bfd_arch_last .  }; */@@ -422,6 +424,7 @@ extern const bfd_arch_info_type bfd_w65_ extern const bfd_arch_info_type bfd_xstormy16_arch; extern const bfd_arch_info_type bfd_xtensa_arch; extern const bfd_arch_info_type bfd_z8k_arch;+extern const bfd_arch_info_type bfd_nios2_arch;  static const bfd_arch_info_type * const bfd_archures_list[] =   {@@ -460,6 +463,7 @@ static const bfd_arch_info_type * const      &bfd_mn10200_arch,     &bfd_mn10300_arch,     &bfd_msp430_arch,+	&bfd_nios2_arch,     &bfd_ns32k_arch,     &bfd_openrisc_arch,     &bfd_or32_arch,--- binutils-2.15/bfd/bfd-in2.h	2004-05-17 21:35:56.000000000 +0200+++ binutils-2.15-nios2/bfd/bfd-in2.h	2005-05-17 12:20:13.000000000 +0200@@ -830,37 +830,48 @@ extern void bfd_elf64_ia64_after_parse   (int);  /* Extracted from init.c.  */-void bfd_init (void);+void+bfd_init PARAMS ((void));  /* Extracted from opncls.c.  */-bfd *bfd_openr (const char *filename, const char *target);+bfd *+bfd_openr PARAMS ((const char *filename, const char *target)); -bfd *bfd_fdopenr (const char *filename, const char *target, int fd);+bfd *+bfd_fdopenr PARAMS ((const char *filename, const char *target, int fd)); -bfd *bfd_openstreamr (const char *, const char *, void *);+bfd *+bfd_openstreamr PARAMS ((const char *, const char *, void *)); -bfd *bfd_openw (const char *filename, const char *target);+bfd *+bfd_openw PARAMS ((const char *filename, const char *target)); -bfd_boolean bfd_close (bfd *abfd);+bfd_boolean+bfd_close PARAMS ((bfd *abfd)); -bfd_boolean bfd_close_all_done (bfd *);+bfd_boolean+bfd_close_all_done PARAMS ((bfd *)); -bfd *bfd_create (const char *filename, bfd *templ);+bfd *+bfd_create PARAMS ((const char *filename, bfd *templ)); -bfd_boolean bfd_make_writable (bfd *abfd);+bfd_boolean+bfd_make_writable PARAMS ((bfd *abfd)); -bfd_boolean bfd_make_readable (bfd *abfd);+bfd_boolean+bfd_make_readable PARAMS ((bfd *abfd)); -unsigned long bfd_calc_gnu_debuglink_crc32-   (unsigned long crc, const unsigned char *buf, bfd_size_type len);+unsigned long+bfd_calc_gnu_debuglink_crc32 PARAMS ((unsigned long crc, const unsigned char *buf, bfd_size_type len)); -char *bfd_follow_gnu_debuglink (bfd *abfd, const char *dir);+char *+bfd_follow_gnu_debuglink PARAMS ((bfd *abfd, const char *dir)); -struct bfd_section *bfd_create_gnu_debuglink_section-   (bfd *abfd, const char *filename);+struct bfd_section *+bfd_create_gnu_debuglink_section PARAMS ((bfd *abfd, const char *filename)); -bfd_boolean bfd_fill_in_gnu_debuglink_section-   (bfd *abfd, struct bfd_section *sect, const char *filename);+bfd_boolean+bfd_fill_in_gnu_debuglink_section PARAMS ((bfd *abfd, struct bfd_section *sect, const char *filename));  /* Extracted from libbfd.c.  */ @@ -976,9 +987,11 @@ bfd_boolean bfd_fill_in_gnu_debuglink_se   /* Extracted from bfdio.c.  */-long bfd_get_mtime (bfd *abfd);+long+bfd_get_mtime PARAMS ((bfd *abfd)); -long bfd_get_size (bfd *abfd);+long+bfd_get_size PARAMS ((bfd *abfd));  /* Extracted from bfdwin.c.  */ /* Extracted from section.c.  */@@ -1421,48 +1434,54 @@ extern const struct bfd_symbol * const b     }                                                  \   while (0) -void bfd_section_list_clear (bfd *);+void+bfd_section_list_clear PARAMS ((bfd *)); -asection *bfd_get_section_by_name (bfd *abfd, const char *name);+asection *+bfd_get_section_by_name PARAMS ((bfd *abfd, const char *name)); -char *bfd_get_unique_section_name-   (bfd *abfd, const char *templat, int *count);+char *+bfd_get_unique_section_name PARAMS ((bfd *abfd, const char *templat, int *count)); -asection *bfd_make_section_old_way (bfd *abfd, const char *name);+asection *+bfd_make_section_old_way PARAMS ((bfd *abfd, const char *name)); -asection *bfd_make_section_anyway (bfd *abfd, const char *name);+asection *+bfd_make_section_anyway PARAMS ((bfd *abfd, const char *name)); -asection *bfd_make_section (bfd *, const char *name);+asection *+bfd_make_section PARAMS ((bfd *, const char *name)); -bfd_boolean bfd_set_section_flags-   (bfd *abfd, asection *sec, flagword flags);+bfd_boolean+bfd_set_section_flags PARAMS ((bfd *abfd, asection *sec, flagword flags)); -void bfd_map_over_sections-   (bfd *abfd,+void+bfd_map_over_sections PARAMS ((bfd *abfd,     void (*func) (bfd *abfd, asection *sect, void *obj),-    void *obj);+    void *obj)); -bfd_boolean bfd_set_section_size-   (bfd *abfd, asection *sec, bfd_size_type val);+bfd_boolean+bfd_set_section_size PARAMS ((bfd *abfd, asection *sec, bfd_size_type val)); -bfd_boolean bfd_set_section_contents-   (bfd *abfd, asection *section, const void *data,-    file_ptr offset, bfd_size_type count);+bfd_boolean+bfd_set_section_contents PARAMS ((bfd *abfd, asection *section, const void *data,+    file_ptr offset, bfd_size_type count)); -bfd_boolean bfd_get_section_contents-   (bfd *abfd, asection *section, void *location, file_ptr offset,-    bfd_size_type count);+bfd_boolean+bfd_get_section_contents PARAMS ((bfd *abfd, asection *section, void *location, file_ptr offset,+    bfd_size_type count)); -bfd_boolean bfd_copy_private_section_data-   (bfd *ibfd, asection *isec, bfd *obfd, asection *osec);+bfd_boolean+bfd_copy_private_section_data PARAMS ((bfd *ibfd, asection *isec, bfd *obfd, asection *osec));  #define bfd_copy_private_section_data(ibfd, isection, obfd, osection) \      BFD_SEND (obfd, _bfd_copy_private_section_data, \                (ibfd, isection, obfd, osection))-void _bfd_strip_section_from_output-   (struct bfd_link_info *info, asection *section);+void+_bfd_strip_section_from_output PARAMS ((struct bfd_link_info *info, asection *section)); -bfd_boolean bfd_generic_discard_group (bfd *abfd, asection *group);+bfd_boolean+bfd_generic_discard_group PARAMS ((bfd *abfd, asection *group));  /* Extracted from archures.c.  */ enum bfd_architecture@@ -1728,6 +1747,8 @@ enum bfd_architecture #define bfd_mach_msp44          44   bfd_arch_xtensa,    /* Tensilica's Xtensa cores.  */ #define bfd_mach_xtensa        1+  bfd_arch_nios2,+#define bfd_mach_nios2                    1   bfd_arch_last   }; @@ -1754,37 +1775,47 @@ typedef struct bfd_arch_info } bfd_arch_info_type; -const char *bfd_printable_name (bfd *abfd);+const char *+bfd_printable_name PARAMS ((bfd *abfd)); -const bfd_arch_info_type *bfd_scan_arch (const char *string);+const bfd_arch_info_type *+bfd_scan_arch PARAMS ((const char *string)); -const char **bfd_arch_list (void);+const char **+bfd_arch_list PARAMS ((void)); -const bfd_arch_info_type *bfd_arch_get_compatible-   (const bfd *abfd, const bfd *bbfd, bfd_boolean accept_unknowns);+const bfd_arch_info_type *+bfd_arch_get_compatible PARAMS ((const bfd *abfd, const bfd *bbfd, bfd_boolean accept_unknowns)); -void bfd_set_arch_info (bfd *abfd, const bfd_arch_info_type *arg);+void+bfd_set_arch_info PARAMS ((bfd *abfd, const bfd_arch_info_type *arg)); -enum bfd_architecture bfd_get_arch (bfd *abfd);+enum bfd_architecture+bfd_get_arch PARAMS ((bfd *abfd)); -unsigned long bfd_get_mach (bfd *abfd);+unsigned long+bfd_get_mach PARAMS ((bfd *abfd)); -unsigned int bfd_arch_bits_per_byte (bfd *abfd);+unsigned int+bfd_arch_bits_per_byte PARAMS ((bfd *abfd)); -unsigned int bfd_arch_bits_per_address (bfd *abfd);+unsigned int+bfd_arch_bits_per_address PARAMS ((bfd *abfd)); -const bfd_arch_info_type *bfd_get_arch_info (bfd *abfd);+const bfd_arch_info_type *+bfd_get_arch_info PARAMS ((bfd *abfd)); -const bfd_arch_info_type *bfd_lookup_arch-   (enum bfd_architecture arch, unsigned long machine);+const bfd_arch_info_type *+bfd_lookup_arch PARAMS ((enum bfd_architecture arch, unsigned long machine)); -const char *bfd_printable_arch_mach-   (enum bfd_architecture arch, unsigned long machine);+const char *+bfd_printable_arch_mach PARAMS ((enum bfd_architecture arch, unsigned long machine)); -unsigned int bfd_octets_per_byte (bfd *abfd);+unsigned int+bfd_octets_per_byte PARAMS ((bfd *abfd)); -unsigned int bfd_arch_mach_octets_per_byte-   (enum bfd_architecture arch, unsigned long machine);+unsigned int+bfd_arch_mach_octets_per_byte PARAMS ((enum bfd_architecture arch, unsigned long machine));  /* Extracted from reloc.c.  */ typedef enum bfd_reloc_status@@ -1967,7 +1998,8 @@ struct reloc_howto_struct       }                                                 \   } -unsigned int bfd_get_reloc_size (reloc_howto_type *);+unsigned int+bfd_get_reloc_size PARAMS ((reloc_howto_type *));  typedef struct relent_chain {@@ -1976,27 +2008,27 @@ typedef struct relent_chain } arelent_chain; -bfd_reloc_status_type bfd_check_overflow-   (enum complain_overflow how,+bfd_reloc_status_type+bfd_check_overflow PARAMS ((enum complain_overflow how,     unsigned int bitsize,     unsigned int rightshift,     unsigned int addrsize,-    bfd_vma relocation);+    bfd_vma relocation)); -bfd_reloc_status_type bfd_perform_relocation-   (bfd *abfd,+bfd_reloc_status_type+bfd_perform_relocation PARAMS ((bfd *abfd,     arelent *reloc_entry,     void *data,     asection *input_section,     bfd *output_bfd,-    char **error_message);+    char **error_message)); -bfd_reloc_status_type bfd_install_relocation-   (bfd *abfd,+bfd_reloc_status_type+bfd_install_relocation PARAMS ((bfd *abfd,     arelent *reloc_entry,     void *data, bfd_vma data_start,     asection *input_section,-    char **error_message);+    char **error_message));  enum bfd_reloc_code_real {   _dummy_first_bfd_reloc_code_real,@@ -3439,6 +3471,23 @@ This is the 5 bits of a value.  */   BFD_RELOC_MSP430_16_PCREL_BYTE,   BFD_RELOC_MSP430_16_BYTE, +/* Relocations used by the Altera New Jersey core  */+  BFD_RELOC_NIOS2_S16,+  BFD_RELOC_NIOS2_U16,+  BFD_RELOC_NIOS2_CALL26,+  BFD_RELOC_NIOS2_IMM5,+  BFD_RELOC_NIOS2_CACHE_OPX,+  BFD_RELOC_NIOS2_IMM6,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -