diff -upr --new-file binutils-2.9.5.0.35/ChangeLog binutils-2.9.5.0.37/ChangeLog --- binutils-2.9.5.0.35/ChangeLog Wed Apr 12 10:04:40 2000 +++ binutils-2.9.5.0.37/ChangeLog Sun Apr 16 10:07:18 2000 @@ -1,3 +1,17 @@ +Wed Apr 12 16:42:48 2000 Andrew Cagney + + * Makefile.in (gdb-taz): New target. GDB specific archive. + (do-md5sum): New target. + (MD5PROG): Define. + (PACKAGE): Default to TOOL. + (VER): Default to a shell script. + (taz): Rewrite target. Move real work to do-proto-toplev. Include + md5 checksum generation. + (do-proto-toplev): New target. Create $(PACKAGE)-$(VER) link. + (do-tar-bz2): Delete creation of $(PACKAGE)-$(VER) link. + (gdb.tar.bz2, dejagnu.tar.bz2, gdb+dejagnu.tar.bz2, + insight.tar.bz2): Use gdb-taz to create archive. + Fri Apr 7 18:10:29 2000 Andrew Cagney * configure (warn_cflags): Delete. diff -upr --new-file binutils-2.9.5.0.35/Makefile.in binutils-2.9.5.0.37/Makefile.in --- binutils-2.9.5.0.35/Makefile.in Mon Apr 3 09:45:19 2000 +++ binutils-2.9.5.0.37/Makefile.in Sun Apr 16 10:07:18 2000 @@ -111,6 +111,7 @@ NM = nm LD = ld BZIPPROG = bzip2 +MD5PROG = md5sum # These values are substituted by configure. DEFAULT_YACC = yacc @@ -1690,9 +1691,36 @@ ETC_SUPPORT= Makefile.in configure confi # this macro. SUPPORT_FILES = list-of-support-files-for-tool-in-question -.PHONY: taz +# NOTE: No double quotes in the below. It is used within shell script +# as VER="$(VER)" +VER = ` if grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \ + sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \ + else \ + sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \ + fi` +PACKAGE = $(TOOL) +.PHONY: taz taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex + $(MAKE) -f Makefile.in do-proto-toplev \ + TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \ + SUPPORT_FILES="$(SUPPORT_FILES)" + $(MAKE) -f Makefile.in do-md5sum \ + TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \ + SUPPORT_FILES="$(SUPPORT_FILES)" + $(MAKE) -f Makefile.in do-tar-bz2 \ + TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \ + SUPPORT_FILES="$(SUPPORT_FILES)" + +.PHONY: gdb-taz +gdb-taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex + $(MAKE) -f Makefile.in taz \ + TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \ + SUPPORT_FILES="$(SUPPORT_FILES)" + +.PHONY: do-proto-toplev +do-proto-toplev: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex + echo "==> Making $(PACKAGE)-$(VER)/" # Take out texinfo from a few places. sed -e '/^all\.normal: /s/\all-texinfo //' \ -e '/^ install-texinfo /d' \ @@ -1742,25 +1770,22 @@ taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) te ln -s ../../../texinfo/util/tex3patch proto-toplev/texinfo/util ; \ else true; fi chmod -R og=u . || chmod og=u `find . -print` - if grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \ - ver=`sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'`; \ - else \ - ver=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \ - fi; \ - if test x"$(PACKAGE)" = x; then \ - package="$(TOOL)"; \ - else \ - package="$(PACKAGE)"; \ - fi; \ - $(MAKE) -f Makefile.in do-tar-bz2 TOOL=$(TOOL) VER=$$ver PACKAGE=$$package + # + -rm -f $(PACKAGE)-$(VER) + ln -s proto-toplev $(PACKAGE)-$(VER) +.PHONY: do-tar-bz2 do-tar-bz2: echo "==> Making $(PACKAGE)-$(VER).tar.bz2" - -rm -f $(PACKAGE)-$(VER) - ln -s proto-toplev $(PACKAGE)-$(VER) tar cfh $(PACKAGE)-$(VER).tar $(PACKAGE)-$(VER) $(BZIPPROG) -v -9 $(PACKAGE)-$(VER).tar +.PHONY: do-md5sum +do-md5sum: + echo "==> Adding md5 checksum to top-level directory" + ( cd proto-toplev && find * -follow -type f -print | xargs $(MD5PROG) ) > md5.sum + mv md5.sum proto-toplev + TEXINFO_SUPPORT= texinfo/texinfo.tex DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT) @@ -1797,7 +1822,7 @@ gnats.tar.bz2: $(DIST_SUPPORT) $(GNATS_S .PHONY: gdb.tar.bz2 GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils intl gdb.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb - $(MAKE) -f Makefile.in taz TOOL=gdb \ + $(MAKE) -f Makefile.in gdb-taz TOOL=gdb \ SUPPORT_FILES="$(GDB_SUPPORT_DIRS)" .PHONY: dejagnu.tar.bz2 @@ -1809,19 +1834,19 @@ dejagnu.tar.bz2: $(DIST_SUPPORT) $(DEJAG .PHONY: gdb+dejagnu.tar.bz2 GDBD_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl expect dejagnu gdb+dejagnu.tar.bz2: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb - $(MAKE) -f Makefile.in taz TOOL=gdb PACKAGE=gdb+dejagnu \ + $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=gdb+dejagnu \ SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)" .PHONY: insight.tar.bz2 INSIGHT_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl tk itcl tix libgui insight.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb - $(MAKE) -f Makefile.in taz TOOL=gdb PACKAGE=insight \ + $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=insight \ SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)" .PHONY: insight+dejagnu.tar.bz2 INSIGHTD_SUPPORT_DIRS= $(INSIGHT_SUPPORT_DIRS) expect dejagnu insight+dejagnu.tar.bz2: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb - $(MAKE) -f Makefile.in taz TOOL=gdb PACKAGE="insight+dejagnu" \ + $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE="insight+dejagnu" \ SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)" .PHONY: newlib.tar.bz2 diff -upr --new-file binutils-2.9.5.0.35/bfd/ChangeLog binutils-2.9.5.0.37/bfd/ChangeLog --- binutils-2.9.5.0.35/bfd/ChangeLog Wed Apr 12 10:05:09 2000 +++ binutils-2.9.5.0.37/bfd/ChangeLog Tue Apr 18 10:04:56 2000 @@ -1,3 +1,81 @@ +Mon Apr 17 19:14:36 2000 David Mosberger + + * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo. + (BFD64_BACKENDS_CFILES): Mention coff-ia64.c + (coff-ia64.lo): Add dependency. + * Makefile.in: Regenerate. + * coff-ia64.c: New file. + * efi-app-ia32.c: Ditto. + * efi-app-ia64.c: Ditto. + * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC. + (coff_set_flags): Ditto. + (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC. + * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec. + * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec. + * configure: Regenerate. + * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro. + (PUT_OPTHDR_IMAGE_BASE): Ditto. + (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto. + (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto. + (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto. + (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto. + (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto. + (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto. + (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto. + (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto. + (GET_PDATA_ENTRY): Ditto. + * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read + data_start. Use above macros to read fields that are 64 bit wide for + COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits. + (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force + FileAlignment and SectionAlignment to minimum alignment if they + are zero. + (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set + Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM. + (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start. + Use above macros to write fields that are 64 bit wide for + COFF_WITH_PEP64. + (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64, + 5*4 otherwise. This should be right for IA-32 and IA-64, but may + be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded + value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print + begin address, end address, and unwind info address only. Use + GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to + print addresses. + (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and + HIGH3ADJ relocation names. + (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form. + * targets.c: Declare bfd_efi_app_ia32_vec and + bfd_efi_app_ia64_vec. + (bfd_target_vector): Mention bfd_efi_app_ia32_vec and + bfd_efi_app_ia64_vec. + +2000-04-17 Timothy Wall + + * bfd-in2.h: Add prototypes for tic54x load page access. + * bfd-in.h: Regenerate. + * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown + in customized _set_arch_mach function. + * coffcode.h (coff_set_alignment_hook): Set section load page if + the appropriate macro is defined. + (write_object_contents): Read section load page. + +2000-04-13 Alan Modra + + * elf32-hppa.h: Update copyright date. + + * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix. + * elf32-mips.c (_bfd_mips_elf_relocate_section): And here. + + * elf32-d30v.c (MAX32): Don't use LL suffix. + (MIN32): Define in terms of MAX32. + (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma. + + * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise + expression. + + * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants. + 2000-04-12 Alan Modra * dep-in.sed: Match space before file name, not after. diff -upr --new-file binutils-2.9.5.0.35/bfd/Makefile.am binutils-2.9.5.0.37/bfd/Makefile.am --- binutils-2.9.5.0.35/bfd/Makefile.am Wed Apr 12 10:27:27 2000 +++ binutils-2.9.5.0.37/bfd/Makefile.am Tue Apr 18 10:12:36 2000 @@ -385,6 +385,7 @@ BFD32_BACKENDS_CFILES = \ BFD64_BACKENDS = \ aout64.lo \ coff-alpha.lo \ + coff-ia64.lo \ demo64.lo \ elf64-alpha.lo \ elf64-gen.lo \ @@ -397,6 +398,7 @@ BFD64_BACKENDS = \ BFD64_BACKENDS_CFILES = \ aout64.c \ coff-alpha.c \ + coff-ia64.c \ demo64.c \ elf64-alpha.c \ elf64-gen.c \ @@ -1093,6 +1095,8 @@ coff-alpha.lo: coff-alpha.c $(INCDIR)/bf $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h $(INCDIR)/coff/ecoff.h \ $(INCDIR)/coff/alpha.h $(INCDIR)/aout/ar.h libcoff.h \ libecoff.h coffswap.h ecoffswap.h +coff-ia64.lo: coff-ia64.c $(INCDIR)/coff/ia64.h $(INCDIR)/coff/internal.h \ + $(INCDIR)/coff/pe.h libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h demo64.lo: demo64.c aoutf1.h $(INCDIR)/aout/sun4.h \ libaout.h $(INCDIR)/bfdlink.h $(INCDIR)/aout/aout64.h \ $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h \ diff -upr --new-file binutils-2.9.5.0.35/bfd/Makefile.in binutils-2.9.5.0.37/bfd/Makefile.in --- binutils-2.9.5.0.35/bfd/Makefile.in Wed Apr 12 10:27:27 2000 +++ binutils-2.9.5.0.37/bfd/Makefile.in Tue Apr 18 10:12:36 2000 @@ -504,6 +504,7 @@ BFD32_BACKENDS_CFILES = \ BFD64_BACKENDS = \ aout64.lo \ coff-alpha.lo \ + coff-ia64.lo \ demo64.lo \ elf64-alpha.lo \ elf64-gen.lo \ @@ -517,6 +518,7 @@ BFD64_BACKENDS = \ BFD64_BACKENDS_CFILES = \ aout64.c \ coff-alpha.c \ + coff-ia64.c \ demo64.c \ elf64-alpha.c \ elf64-gen.c \ @@ -1621,6 +1623,8 @@ coff-alpha.lo: coff-alpha.c $(INCDIR)/bf $(INCDIR)/coff/sym.h $(INCDIR)/coff/symconst.h $(INCDIR)/coff/ecoff.h \ $(INCDIR)/coff/alpha.h $(INCDIR)/aout/ar.h libcoff.h \ libecoff.h coffswap.h ecoffswap.h +coff-ia64.lo: coff-ia64.c $(INCDIR)/coff/ia64.h $(INCDIR)/coff/internal.h \ + $(INCDIR)/coff/pe.h libcoff.h $(INCDIR)/bfdlink.h coffcode.h coffswap.h demo64.lo: demo64.c aoutf1.h $(INCDIR)/aout/sun4.h \ libaout.h $(INCDIR)/bfdlink.h $(INCDIR)/aout/aout64.h \ $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h \ diff -upr --new-file binutils-2.9.5.0.35/bfd/bfd-in.h binutils-2.9.5.0.37/bfd/bfd-in.h --- binutils-2.9.5.0.35/bfd/bfd-in.h Sun Mar 12 09:40:13 2000 +++ binutils-2.9.5.0.37/bfd/bfd-in.h Tue Apr 18 10:12:36 2000 @@ -748,4 +748,11 @@ extern boolean bfd_elf32_arm_process_bef extern boolean bfd_elf32_arm_get_bfd_for_interworking PARAMS ((bfd *, struct bfd_link_info *)); +/* TI COFF load page support. */ +extern void bfd_ticoff_set_section_load_page + PARAMS ((struct sec *, int)); + +extern int bfd_ticoff_get_section_load_page + PARAMS ((struct sec *)); + /* And more from the source. */ diff -upr --new-file binutils-2.9.5.0.35/bfd/bfd-in2.h binutils-2.9.5.0.37/bfd/bfd-in2.h --- binutils-2.9.5.0.35/bfd/bfd-in2.h Wed Apr 12 11:06:11 2000 +++ binutils-2.9.5.0.37/bfd/bfd-in2.h Tue Apr 18 10:12:36 2000 @@ -748,6 +748,13 @@ extern boolean bfd_elf32_arm_process_bef extern boolean bfd_elf32_arm_get_bfd_for_interworking PARAMS ((bfd *, struct bfd_link_info *)); +/* TI COFF load page support. */ +extern void bfd_ticoff_set_section_load_page + PARAMS ((struct sec *, int)); + +extern int bfd_ticoff_get_section_load_page + PARAMS ((struct sec *)); + /* And more from the source. */ void bfd_init PARAMS ((void)); diff -upr --new-file binutils-2.9.5.0.35/bfd/coff-a29k.c binutils-2.9.5.0.37/bfd/coff-a29k.c --- binutils-2.9.5.0.35/bfd/coff-a29k.c Wed Mar 1 10:00:35 2000 +++ binutils-2.9.5.0.37/bfd/coff-a29k.c Sun Apr 16 10:13:29 2000 @@ -1,5 +1,5 @@ /* BFD back-end for AMD 29000 COFF binaries. - Copyright 1990, 91, 92, 93, 94, 95, 97, 98, 1999 + Copyright 1990, 91, 92, 93, 94, 95, 97, 98, 99, 2000 Free Software Foundation, Inc. Contributed by David Wood at New York University 7/8/91. @@ -43,9 +43,9 @@ static boolean coff_a29k_adjust_symndx #define INSERT_HWORD(WORD,HWORD) \ (((WORD) & 0xff00ff00) | (((HWORD) & 0xff00) << 8) | ((HWORD)& 0xff)) #define EXTRACT_HWORD(WORD) \ - ((((WORD) & 0x00ff0000) >> 8) | ((WORD)& 0xff)) + ((((WORD) & 0x00ff0000) >> 8) | ((WORD) & 0xff)) #define SIGN_EXTEND_HWORD(HWORD) \ - ((HWORD) & 0x8000 ? (HWORD)|(~0xffffL) : (HWORD)) + (((HWORD) ^ 0x8000) - 0x8000) /* Provided the symbol, returns the value reffed */ static long diff -upr --new-file binutils-2.9.5.0.35/bfd/coff-ia64.c binutils-2.9.5.0.37/bfd/coff-ia64.c --- binutils-2.9.5.0.35/bfd/coff-ia64.c Wed Dec 31 16:00:00 1969 +++ binutils-2.9.5.0.37/bfd/coff-ia64.c Tue Apr 18 10:05:34 2000 @@ -0,0 +1,198 @@ +/* BFD back-end for HP/Intel IA-64 COFF files. + Copyright 1999 Free Software Foundation, Inc. + Contributed by David Mosberger + +This file is part of BFD, the Binary File Descriptor library. + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#include "bfd.h" +#include "sysdep.h" +#include "libbfd.h" + +#include "coff/ia64.h" + +#include "coff/internal.h" + +#include "coff/pe.h" + +#include "libcoff.h" + +#define COFF_DEFAULT_SECTION_ALIGNMENT_POWER (2) +/* The page size is a guess based on ELF. */ + +#define COFF_PAGE_SIZE 0x1000 + +static reloc_howto_type howto_table[] = +{ + {0}, +}; + +#define BADMAG(x) IA64BADMAG(x) +#define IA64 1 /* Customize coffcode.h */ + +#ifdef COFF_WITH_PEP64 +# undef AOUTSZ +# define AOUTSZ PEP64AOUTSZ +# define PEAOUTHDR PEP64AOUTHDR +#endif + +#define RTYPE2HOWTO(cache_ptr, dst) \ + (cache_ptr)->howto = howto_table + (dst)->r_type; + +#ifdef COFF_WITH_PE +/* Return true if this relocation should + appear in the output .reloc section. */ + +static boolean +in_reloc_p(abfd, howto) + bfd * abfd; + reloc_howto_type *howto; +{ + return 0; /* We don't do relocs for now... */ +} +#endif + +#include "coffcode.h" + +static const bfd_target * +ia64coff_object_p (abfd) + bfd *abfd; +{ +#ifdef COFF_IMAGE_WITH_PE + /* We need to hack badly to handle a PE image correctly. In PE + images created by the GNU linker, the offset to the COFF header + is always the size. However, this is not the case in images + generated by other PE linkers. The PE format stores a four byte + offset to the PE signature just before the COFF header at + location 0x3c of the file. We pick up that offset, verify that + the PE signature is there, and then set ourselves up to read in + the COFF header. */ + { + bfd_byte ext_offset[4]; + file_ptr offset; + bfd_byte ext_signature[4]; + unsigned long signature; + + if (bfd_seek (abfd, 0x3c, SEEK_SET) != 0 + || bfd_read (ext_offset, 1, 4, abfd) != 4) + { + if (bfd_get_error () != bfd_error_system_call) + bfd_set_error (bfd_error_wrong_format); + return NULL; + } + offset = bfd_h_get_32 (abfd, ext_offset); + if (bfd_seek (abfd, offset, SEEK_SET) != 0 + || bfd_read (ext_signature, 1, 4, abfd) != 4) + { + if (bfd_get_error () != bfd_error_system_call) + bfd_set_error (bfd_error_wrong_format); + return NULL; + } + signature = bfd_h_get_32 (abfd, ext_signature); + + if (signature != 0x4550) + { + bfd_set_error (bfd_error_wrong_format); + return NULL; + } + + /* Here is the hack. coff_object_p wants to read filhsz bytes to + pick up the COFF header. We adjust so that that will work. 20 + is the size of the COFF filehdr. */ + + if (bfd_seek (abfd, + (bfd_tell (abfd) + - bfd_coff_filhsz (abfd) + + 20), + SEEK_SET) + != 0) + { + if (bfd_get_error () != bfd_error_system_call) + bfd_set_error (bfd_error_wrong_format); + return NULL; + } + } +#endif + + return coff_object_p (abfd); +} + +const bfd_target +#ifdef TARGET_SYM + TARGET_SYM = +#else + ia64coff_vec = +#endif +{ +#ifdef TARGET_NAME + TARGET_NAME, +#else + "coff-ia64", /* name */ +#endif + bfd_target_coff_flavour, + BFD_ENDIAN_LITTLE, /* data byte order is little */ + BFD_ENDIAN_LITTLE, /* header byte order is little */ + + (HAS_RELOC | EXEC_P | /* object flags */ + HAS_LINENO | HAS_DEBUG | + HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED), + +#ifndef COFF_WITH_PE + (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC /* section flags */ + | SEC_CODE | SEC_DATA), +#else + (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC /* section flags */ + | SEC_CODE | SEC_DATA + | SEC_LINK_ONCE | SEC_LINK_DUPLICATES), +#endif + +#ifdef TARGET_UNDERSCORE + TARGET_UNDERSCORE, /* leading underscore */ +#else + 0, /* leading underscore */ +#endif + '/', /* ar_pad_char */ + 15, /* ar_max_namelen */ + + bfd_getl64, bfd_getl_signed_64, bfd_putl64, + bfd_getl32, bfd_getl_signed_32, bfd_putl32, + bfd_getl16, bfd_getl_signed_16, bfd_putl16, /* data */ + bfd_getl64, bfd_getl_signed_64, bfd_putl64, + bfd_getl32, bfd_getl_signed_32, bfd_putl32, + bfd_getl16, bfd_getl_signed_16, bfd_putl16, /* hdrs */ + +/* Note that we allow an object file to be treated as a core file as well. */ + {_bfd_dummy_target, ia64coff_object_p, /* bfd_check_format */ + bfd_generic_archive_p, ia64coff_object_p}, + {bfd_false, coff_mkobject, _bfd_generic_mkarchive, /* bfd_set_format */ + bfd_false}, + {bfd_false, coff_write_object_contents, /* bfd_write_contents */ + _bfd_write_archive_contents, bfd_false}, + + BFD_JUMP_TABLE_GENERIC (coff), + BFD_JUMP_TABLE_COPY (coff), + BFD_JUMP_TABLE_CORE (_bfd_nocore), + BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff), + BFD_JUMP_TABLE_SYMBOLS (coff), + BFD_JUMP_TABLE_RELOCS (coff), + BFD_JUMP_TABLE_WRITE (coff), + BFD_JUMP_TABLE_LINK (coff), + BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), + + NULL, + + COFF_SWAP_TABLE +}; diff -upr --new-file binutils-2.9.5.0.35/bfd/coff-tic54x.c binutils-2.9.5.0.37/bfd/coff-tic54x.c --- binutils-2.9.5.0.35/bfd/coff-tic54x.c Wed Apr 12 10:05:50 2000 +++ binutils-2.9.5.0.37/bfd/coff-tic54x.c Tue Apr 18 10:05:34 2000 @@ -76,6 +76,56 @@ tic54x_getl_signed_32 (addr) return COERCE32 (v); } +#define coff_get_section_load_page bfd_ticoff_get_section_load_page +#define coff_set_section_load_page bfd_ticoff_set_section_load_page + +void +bfd_ticoff_set_section_load_page (sect, page) + asection *sect; + int page; +{ + sect->lma = (sect->lma & ADDR_MASK) | PG_TO_FLAG(page); +} + + +int +bfd_ticoff_get_section_load_page (sect) + asection *sect; +{ + int page; + + /* Provide meaningful defaults for predefined sections. */ + if (sect == &bfd_com_section) + page = PG_DATA; + + else if (sect == &bfd_und_section + || sect == &bfd_abs_section + || sect == &bfd_ind_section) + page = PG_PROG; + + else + page = FLAG_TO_PG (sect->lma); + + return page; +} + +/* Set the architecture appropriately. Allow unkown architectures + (e.g. binary). */ +static boolean +tic54x_set_arch_mach (abfd, arch, machine) + bfd *abfd; + enum bfd_architecture arch; + unsigned long machine; +{ + if (arch == bfd_arch_unknown) + arch = bfd_arch_tic54x; + + else if (arch != bfd_arch_tic54x) + return false; + + return bfd_default_set_arch_mach (abfd, arch, machine); +} + static bfd_reloc_status_type tic54x_relocation (abfd, reloc_entry, symbol, data, input_section, output_bfd, error_message) @@ -295,6 +345,18 @@ ticoff_bfd_is_local_label_name (abfd, na #define BADMAG(x) COFF2_BADMAG(x) #include "coffcode.h" +static boolean +tic54x_set_section_contents (abfd, section, location, offset, bytes_to_do) + bfd *abfd; + sec_ptr section; + PTR location; + file_ptr offset; + bfd_size_type bytes_to_do; +{ + return coff_set_section_contents (abfd, section, location, + offset, bytes_to_do); +} + static void tic54x_reloc_processing (relent, reloc, symbols, abfd, section) arelent *relent; @@ -420,7 +482,7 @@ const bfd_target tic54x_coff0_vec = (HAS_RELOC | EXEC_P | /* object flags */ HAS_LINENO | HAS_DEBUG | - HAS_SYMS | HAS_LOCALS | WP_TEXT /*| HAS_LOAD_PAGE*/ ), + HAS_SYMS | HAS_LOCALS | WP_TEXT ), (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */ '_', /* leading symbol underscore */ @@ -446,7 +508,7 @@ const bfd_target tic54x_coff0_vec = BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff), BFD_JUMP_TABLE_SYMBOLS (coff), BFD_JUMP_TABLE_RELOCS (coff), - BFD_JUMP_TABLE_WRITE (coff), + BFD_JUMP_TABLE_WRITE (tic54x), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), NULL, @@ -464,7 +526,7 @@ const bfd_target tic54x_coff0_beh_vec = (HAS_RELOC | EXEC_P | /* object flags */ HAS_LINENO | HAS_DEBUG | - HAS_SYMS | HAS_LOCALS | WP_TEXT /*| HAS_LOAD_PAGE*/ ), + HAS_SYMS | HAS_LOCALS | WP_TEXT ), (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */ '_', /* leading symbol underscore */ @@ -490,7 +552,7 @@ const bfd_target tic54x_coff0_beh_vec = BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff), BFD_JUMP_TABLE_SYMBOLS (coff), BFD_JUMP_TABLE_RELOCS (coff), - BFD_JUMP_TABLE_WRITE (coff), + BFD_JUMP_TABLE_WRITE (tic54x), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), @@ -509,7 +571,7 @@ const bfd_target tic54x_coff1_vec = (HAS_RELOC | EXEC_P | /* object flags */ HAS_LINENO | HAS_DEBUG | - HAS_SYMS | HAS_LOCALS | WP_TEXT /*| HAS_LOAD_PAGE*/ ), + HAS_SYMS | HAS_LOCALS | WP_TEXT ), (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */ '_', /* leading symbol underscore */ @@ -535,7 +597,7 @@ const bfd_target tic54x_coff1_vec = BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff), BFD_JUMP_TABLE_SYMBOLS (coff), BFD_JUMP_TABLE_RELOCS (coff), - BFD_JUMP_TABLE_WRITE (coff), + BFD_JUMP_TABLE_WRITE (tic54x), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), @@ -554,7 +616,7 @@ const bfd_target tic54x_coff1_beh_vec = (HAS_RELOC | EXEC_P | /* object flags */ HAS_LINENO | HAS_DEBUG | - HAS_SYMS | HAS_LOCALS | WP_TEXT /*| HAS_LOAD_PAGE*/ ), + HAS_SYMS | HAS_LOCALS | WP_TEXT ), (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */ '_', /* leading symbol underscore */ @@ -580,7 +642,7 @@ const bfd_target tic54x_coff1_beh_vec = BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff), BFD_JUMP_TABLE_SYMBOLS (coff), BFD_JUMP_TABLE_RELOCS (coff), - BFD_JUMP_TABLE_WRITE (coff), + BFD_JUMP_TABLE_WRITE (tic54x), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), @@ -599,7 +661,7 @@ const bfd_target tic54x_coff2_vec = (HAS_RELOC | EXEC_P | /* object flags */ HAS_LINENO | HAS_DEBUG | - HAS_SYMS | HAS_LOCALS | WP_TEXT /*| HAS_LOAD_PAGE*/ ), + HAS_SYMS | HAS_LOCALS | WP_TEXT ), (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */ '_', /* leading symbol underscore */ @@ -625,7 +687,7 @@ const bfd_target tic54x_coff2_vec = BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff), BFD_JUMP_TABLE_SYMBOLS (coff), BFD_JUMP_TABLE_RELOCS (coff), - BFD_JUMP_TABLE_WRITE (coff), + BFD_JUMP_TABLE_WRITE (tic54x), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), @@ -644,7 +706,7 @@ const bfd_target tic54x_coff2_beh_vec = (HAS_RELOC | EXEC_P | /* object flags */ HAS_LINENO | HAS_DEBUG | - HAS_SYMS | HAS_LOCALS | WP_TEXT /*| HAS_LOAD_PAGE*/ ), + HAS_SYMS | HAS_LOCALS | WP_TEXT ), (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC), /* section flags */ '_', /* leading symbol underscore */ @@ -670,7 +732,7 @@ const bfd_target tic54x_coff2_beh_vec = BFD_JUMP_TABLE_ARCHIVE (_bfd_archive_coff), BFD_JUMP_TABLE_SYMBOLS (coff), BFD_JUMP_TABLE_RELOCS (coff), - BFD_JUMP_TABLE_WRITE (coff), + BFD_JUMP_TABLE_WRITE (tic54x), BFD_JUMP_TABLE_LINK (coff), BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic), diff -upr --new-file binutils-2.9.5.0.35/bfd/coffcode.h binutils-2.9.5.0.37/bfd/coffcode.h --- binutils-2.9.5.0.35/bfd/coffcode.h Wed Apr 12 10:05:20 2000 +++ binutils-2.9.5.0.37/bfd/coffcode.h Tue Apr 18 10:05:06 2000 @@ -1531,6 +1531,10 @@ coff_set_alignment_hook (abfd, section, i = COFF_DECODE_ALIGNMENT(hdr->s_flags); #endif section->alignment_power = i; + +#ifdef coff_set_section_load_page + coff_set_section_load_page (section, hdr->s_page); +#endif } #else /* ! COFF_ALIGN_IN_SECTION_HEADER */ @@ -1783,6 +1787,12 @@ coff_set_arch_mach_hook (abfd, filehdr) machine = 0; break; #endif +#ifdef IA64MAGIC + case IA64MAGIC: + arch = bfd_arch_ia64; + machine = 0; + break; +#endif #ifdef A29K_MAGIC_BIG case A29K_MAGIC_BIG: case A29K_MAGIC_LITTLE: @@ -2553,6 +2563,12 @@ coff_set_flags (abfd, magicp, flagsp) return true; break; #endif +#ifdef IA64MAGIC + case bfd_arch_ia64: + *magicp = IA64MAGIC; + return true; + break; +#endif #ifdef MC68MAGIC case bfd_arch_m68k: #ifdef APOLLOM68KMAGIC @@ -3249,6 +3265,9 @@ coff_write_object_contents (abfd) section.s_vaddr = current->vma; section.s_paddr = current->lma; section.s_size = current->_raw_size; +#ifdef coff_get_section_load_page + section.s_page = coff_get_section_load_page (current); +#endif #ifdef COFF_WITH_PE section.s_paddr = 0; @@ -3627,6 +3646,11 @@ coff_write_object_contents (abfd) internal_a.magic = ZMAGIC; #endif /* LYNXOS */ #endif /* I386 */ + +#if defined(IA64) +#define __A_MAGIC_SET__ + internal_a.magic = ZMAGIC; +#endif /* IA64 */ #if defined(SPARC) #define __A_MAGIC_SET__ diff -upr --new-file binutils-2.9.5.0.35/bfd/config.bfd binutils-2.9.5.0.37/bfd/config.bfd --- binutils-2.9.5.0.35/bfd/config.bfd Wed Apr 12 10:27:27 2000 +++ binutils-2.9.5.0.37/bfd/config.bfd Tue Apr 18 10:12:36 2000 @@ -303,7 +303,7 @@ case "${targ}" in ;; i[3456]86-*-linux-gnu*) targ_defvec=bfd_elf32_i386_vec - targ_selvecs=i386linux_vec + targ_selvecs="i386linux_vec bfd_efi_app_ia32_vec" ;; i[3456]86-*-lynxos*) targ_defvec=i386lynx_coff_vec diff -upr --new-file binutils-2.9.5.0.35/bfd/configure binutils-2.9.5.0.37/bfd/configure --- binutils-2.9.5.0.35/bfd/configure Wed Apr 12 10:27:27 2000 +++ binutils-2.9.5.0.37/bfd/configure Tue Apr 18 10:13:13 2000 @@ -1063,7 +1063,7 @@ fi PACKAGE=bfd -VERSION=2.9.5.0.35 +VERSION=2.9.5.0.37 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } @@ -5107,6 +5107,9 @@ do apollocoff_vec) tb="$tb coff-apollo.lo" ;; b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; + bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;; + bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo peigen.lo cofflink.lo" + target64=true ;; bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf" target64=true ;; bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; @@ -5333,17 +5336,17 @@ for ac_hdr in unistd.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:5337: checking for $ac_hdr" >&5 +echo "configure:5340: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -5372,12 +5375,12 @@ done for ac_func in getpagesize do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5376: checking for $ac_func" >&5 +echo "configure:5379: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -5425,7 +5428,7 @@ fi done echo $ac_n "checking for working mmap""... $ac_c" 1>&6 -echo "configure:5429: checking for working mmap" >&5 +echo "configure:5432: checking for working mmap" >&5 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5433,7 +5436,7 @@ else ac_cv_func_mmap_fixed_mapped=no else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_mmap_fixed_mapped=yes else @@ -5598,12 +5601,12 @@ fi for ac_func in madvise mprotect do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5602: checking for $ac_func" >&5 +echo "configure:5605: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else diff -upr --new-file binutils-2.9.5.0.35/bfd/configure.in binutils-2.9.5.0.37/bfd/configure.in --- binutils-2.9.5.0.35/bfd/configure.in Wed Apr 12 10:27:27 2000 +++ binutils-2.9.5.0.37/bfd/configure.in Tue Apr 18 10:13:13 2000 @@ -7,7 +7,7 @@ AC_INIT(libbfd.c) AC_CANONICAL_SYSTEM AC_ISC_POSIX -AM_INIT_AUTOMAKE(bfd, 2.9.5.0.35) +AM_INIT_AUTOMAKE(bfd, 2.9.5.0.37) dnl These must be called before AM_PROG_LIBTOOL, because it may want dnl to call AC_CHECK_PROG. @@ -464,6 +464,9 @@ do apollocoff_vec) tb="$tb coff-apollo.lo" ;; b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; + bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;; + bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo peigen.lo cofflink.lo" + target64=true ;; bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf" target64=true ;; bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; diff -upr --new-file binutils-2.9.5.0.35/bfd/doc/ChangeLog binutils-2.9.5.0.37/bfd/doc/ChangeLog --- binutils-2.9.5.0.35/bfd/doc/ChangeLog Wed Apr 12 10:05:50 2000 +++ binutils-2.9.5.0.37/bfd/doc/ChangeLog Tue Apr 18 10:05:34 2000 @@ -1,3 +1,7 @@ +2000-04-17 Ben Elliston + + * bfdint.texi (BFD_JUMP_TABLE macros): Fix typo. + Fri Apr 7 17:54:38 2000 Andrew Cagney * Makefile.in: Rebuild with current autoconf/automake. diff -upr --new-file binutils-2.9.5.0.35/bfd/doc/bfdint.texi binutils-2.9.5.0.37/bfd/doc/bfdint.texi --- binutils-2.9.5.0.35/bfd/doc/bfdint.texi Thu Jun 3 11:01:55 1999 +++ binutils-2.9.5.0.37/bfd/doc/bfdint.texi Tue Apr 18 10:05:34 2000 @@ -19,7 +19,7 @@ This document describes some BFD interna helpful when working on BFD. It is very incomplete. This document is not updated regularly, and may be out of date. It was -last modified on $Date: 1999/05/03 07:28:58 $. +last modified on $Date: 2000/04/17 07:54:12 $. The initial version of this document was written by Ian Lance Taylor @email{ian@@cygnus.com}. @@ -447,7 +447,7 @@ For example, the @samp{BFD_JUMP_TABLE_RE functions: @samp{_get_reloc_upper_bound}, @samp{_canonicalize_reloc}, and @samp{_bfd_reloc_type_lookup}. A reference like @samp{BFD_JUMP_TABLE_RELOCS (foo)} will expand into three functions -prefixed with @samp{foo}: @samp{foo_get_reloc_upper_found}, etc. The +prefixed with @samp{foo}: @samp{foo_get_reloc_upper_bound}, etc. The @samp{BFD_JUMP_TABLE_RELOCS} macro will be placed such that those three functions initialize the appropriate fields in the BFD target vector. diff -upr --new-file binutils-2.9.5.0.35/bfd/efi-app-ia32.c binutils-2.9.5.0.37/bfd/efi-app-ia32.c --- binutils-2.9.5.0.35/bfd/efi-app-ia32.c Wed Dec 31 16:00:00 1969 +++ binutils-2.9.5.0.37/bfd/efi-app-ia32.c Tue Apr 18 10:05:34 2000 @@ -0,0 +1,35 @@ +/* BFD back-end for Intel IA-32 EFI application files. + Copyright 1999 Free Software Foundation, Inc. + Contributed by David Mosberger + +This file is part of BFD, the Binary File Descriptor library. + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#include "bfd.h" +#include "sysdep.h" + +#define TARGET_SYM bfd_efi_app_ia32_vec +#define TARGET_NAME "efi-app-ia32" +#define COFF_IMAGE_WITH_PE +#define COFF_WITH_PE +#define PCRELOFFSET true +#define TARGET_UNDERSCORE '_' +#define COFF_LONG_SECTION_NAMES +#define ALIGN_SECTIONS_IN_FILE +#define PEI_DEFAULT_TARGET_SUBSYSTEM IMAGE_SUBSYSTEM_EFI_APPLICATION +#define PEI_FORCE_MINIMUM_ALIGNMENT + +#include "coff-i386.c" diff -upr --new-file binutils-2.9.5.0.35/bfd/efi-app-ia64.c binutils-2.9.5.0.37/bfd/efi-app-ia64.c --- binutils-2.9.5.0.35/bfd/efi-app-ia64.c Wed Dec 31 16:00:00 1969 +++ binutils-2.9.5.0.37/bfd/efi-app-ia64.c Tue Apr 18 10:05:34 2000 @@ -0,0 +1,35 @@ +/* BFD back-end for HP/Intel IA-64 EFI application files. + Copyright 1999 Free Software Foundation, Inc. + Contributed by David Mosberger + +This file is part of BFD, the Binary File Descriptor library. + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#include "bfd.h" +#include "sysdep.h" + +#define TARGET_SYM bfd_efi_app_ia64_vec +#define TARGET_NAME "efi-app-ia64" +#define COFF_IMAGE_WITH_PE +#define COFF_WITH_PE +#define COFF_WITH_PEP64 +#define PCRELOFFSET true +#define TARGET_UNDERSCORE '_' +#define COFF_LONG_SECTION_NAMES +#define PEI_DEFAULT_TARGET_SUBSYSTEM IMAGE_SUBSYSTEM_EFI_APPLICATION +#define PEI_FORCE_MINIMUM_ALIGNMENT + +#include "coff-ia64.c" diff -upr --new-file binutils-2.9.5.0.35/bfd/elf32-d30v.c binutils-2.9.5.0.37/bfd/elf32-d30v.c --- binutils-2.9.5.0.35/bfd/elf32-d30v.c Sat Jul 17 13:52:26 1999 +++ binutils-2.9.5.0.37/bfd/elf32-d30v.c Sun Apr 16 10:07:51 2000 @@ -1,5 +1,5 @@ /* D30V-specific support for 32-bit ELF - Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1997, 98, 99, 2000 Free Software Foundation, Inc. Contributed by Martin Hunt (hunt@cygnus.com). This file is part of BFD, the Binary File Descriptor library. @@ -263,8 +263,8 @@ static reloc_howto_type elf_d30v_howto_t }; -#define MIN32 (long long)0xffffffff80000000LL -#define MAX32 0x7fffffffLL +#define MAX32 ((bfd_signed_vma) 0x7fffffff) +#define MIN32 (- MAX32 - 1) static bfd_reloc_status_type bfd_elf_d30v_reloc (abfd, reloc_entry, symbol, data, input_section, output_bfd, error_message) @@ -276,7 +276,7 @@ bfd_elf_d30v_reloc (abfd, reloc_entry, s bfd *output_bfd; char **error_message; { - long long relocation; + bfd_signed_vma relocation; bfd_vma in1, in2, num; bfd_vma tmp_addr = 0; bfd_reloc_status_type r; @@ -360,15 +360,10 @@ bfd_elf_d30v_reloc (abfd, reloc_entry, s if (howto->pc_relative == true && howto->bitsize == 32) { - /* the D30V has a PC that doesn't wrap and PC-relative jumps */ - /* are signed, so a PC-relative jump can'tbe more than +/- 2^31 byrtes */ - /* if one exceeds this, change it to an absolute jump */ - if (relocation > MAX32) - { - relocation = (relocation + tmp_addr) & 0xffffffff; - make_absolute = 1; - } - else if (relocation < MIN32) + /* The D30V has a PC that doesn't wrap and PC-relative jumps are + signed, so a PC-relative jump can't be more than +/- 2^31 bytes. + If one exceeds this, change it to an absolute jump. */ + if (relocation > MAX32 || relocation < MIN32) { relocation = (relocation + tmp_addr) & 0xffffffff; make_absolute = 1; diff -upr --new-file binutils-2.9.5.0.35/bfd/elf32-fr30.c binutils-2.9.5.0.37/bfd/elf32-fr30.c --- binutils-2.9.5.0.35/bfd/elf32-fr30.c Wed Mar 1 10:00:36 2000 +++ binutils-2.9.5.0.37/bfd/elf32-fr30.c Sun Apr 16 10:13:29 2000 @@ -1,5 +1,5 @@ /* FR30-specific support for 32-bit ELF. - Copyright (C) 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc. This file is part of BFD, the Binary File Descriptor library. @@ -275,7 +275,7 @@ fr30_elf_i20_reloc (abfd, reloc_entry, s + symbol->section->output_offset + reloc_entry->addend; - if (relocation > ((1U << 20) - 1)) + if (relocation > (((bfd_vma) 1 << 20) - 1)) return bfd_reloc_overflow; x = bfd_get_32 (abfd, data + reloc_entry->address); diff -upr --new-file binutils-2.9.5.0.35/bfd/elf32-hppa.h binutils-2.9.5.0.37/bfd/elf32-hppa.h --- binutils-2.9.5.0.35/bfd/elf32-hppa.h Tue Aug 31 10:11:49 1999 +++ binutils-2.9.5.0.37/bfd/elf32-hppa.h Sun Apr 16 10:07:51 2000 @@ -4,7 +4,8 @@ in the Stratus FTX/Golf Object File Format (SED-1762) dated February 1994. - Copyright (C) 1990, 91, 92, 93, 94 Free Software Foundation, Inc. + Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 98, 99, 2000 + Free Software Foundation, Inc. Written by: diff -upr --new-file binutils-2.9.5.0.35/bfd/elf32-mips.c binutils-2.9.5.0.37/bfd/elf32-mips.c --- binutils-2.9.5.0.35/bfd/elf32-mips.c Wed Apr 12 10:27:27 2000 +++ binutils-2.9.5.0.37/bfd/elf32-mips.c Sun Apr 16 10:13:29 2000 @@ -6739,8 +6739,8 @@ _bfd_mips_elf_relocate_section (output_b bfd_vma low_bits; bfd_vma high_bits; - if (addend & 0x80000000u) - sign_bits = 0xffffffffu; + if (addend & ((bfd_vma) 1 << 31)) + sign_bits = ((bfd_vma) 1 << 32) - 1; else sign_bits = 0; @@ -6859,8 +6859,8 @@ _bfd_mips_elf_relocate_section (output_b bfd_vma low_bits; bfd_vma high_bits; - if (value & 0x80000000u) - sign_bits = 0xffffffffu; + if (value & ((bfd_vma) 1 << 31)) + sign_bits = ((bfd_vma) 1 << 32) - 1; else sign_bits = 0; diff -upr --new-file binutils-2.9.5.0.35/bfd/libpei.h binutils-2.9.5.0.37/bfd/libpei.h --- binutils-2.9.5.0.35/bfd/libpei.h Tue Feb 29 11:00:21 2000 +++ binutils-2.9.5.0.37/bfd/libpei.h Tue Apr 18 10:05:25 2000 @@ -192,6 +192,36 @@ PE/PEI rearrangement (and code added): D #define PUT_SCNHDR_LNNOPTR bfd_h_put_32 #endif +#ifdef COFF_WITH_PEP64 + +#define GET_OPTHDR_IMAGE_BASE bfd_h_get_64 +#define PUT_OPTHDR_IMAGE_BASE bfd_h_put_64 +#define GET_OPTHDR_SIZE_OF_STACK_RESERVE bfd_h_get_64 +#define PUT_OPTHDR_SIZE_OF_STACK_RESERVE bfd_h_put_64 +#define GET_OPTHDR_SIZE_OF_STACK_COMMIT bfd_h_get_64 +#define PUT_OPTHDR_SIZE_OF_STACK_COMMIT bfd_h_put_64 +#define GET_OPTHDR_SIZE_OF_HEAP_RESERVE bfd_h_get_64 +#define PUT_OPTHDR_SIZE_OF_HEAP_RESERVE bfd_h_put_64 +#define GET_OPTHDR_SIZE_OF_HEAP_COMMIT bfd_h_get_64 +#define PUT_OPTHDR_SIZE_OF_HEAP_COMMIT bfd_h_put_64 +#define GET_PDATA_ENTRY bfd_get_64 + +#else /* !COFF_WITH_PEP64 */ + +#define GET_OPTHDR_IMAGE_BASE bfd_h_get_32 +#define PUT_OPTHDR_IMAGE_BASE bfd_h_put_32 +#define GET_OPTHDR_SIZE_OF_STACK_RESERVE bfd_h_get_32 +#define PUT_OPTHDR_SIZE_OF_STACK_RESERVE bfd_h_put_32 +#define GET_OPTHDR_SIZE_OF_STACK_COMMIT bfd_h_get_32 +#define PUT_OPTHDR_SIZE_OF_STACK_COMMIT bfd_h_put_32 +#define GET_OPTHDR_SIZE_OF_HEAP_RESERVE bfd_h_get_32 +#define PUT_OPTHDR_SIZE_OF_HEAP_RESERVE bfd_h_put_32 +#define GET_OPTHDR_SIZE_OF_HEAP_COMMIT bfd_h_get_32 +#define PUT_OPTHDR_SIZE_OF_HEAP_COMMIT bfd_h_put_32 +#define GET_PDATA_ENTRY bfd_get_32 + +#endif /* !COFF_WITH_PEP64 */ + /* These functions are architecture dependent, and are in peicode.h: coff_swap_reloc_in int coff_swap_reloc_out diff -upr --new-file binutils-2.9.5.0.35/bfd/peicode.h binutils-2.9.5.0.37/bfd/peicode.h --- binutils-2.9.5.0.35/bfd/peicode.h Sun Mar 12 09:40:13 2000 +++ binutils-2.9.5.0.37/bfd/peicode.h Sun Apr 16 10:13:29 2000 @@ -905,8 +905,8 @@ pe_ILF_build_a_bfd (bfd * abfd /* XXX - treat as IMPORT_NAME ??? */ abort (); - * (unsigned int *) id4->contents = ordinal | 0x80000000UL; - * (unsigned int *) id5->contents = ordinal | 0x80000000UL; + * (unsigned int *) id4->contents = ordinal | 0x80000000; + * (unsigned int *) id5->contents = ordinal | 0x80000000; } else { diff -upr --new-file binutils-2.9.5.0.35/bfd/peigen.c binutils-2.9.5.0.37/bfd/peigen.c --- binutils-2.9.5.0.35/bfd/peigen.c Tue Feb 29 11:00:24 2000 +++ binutils-2.9.5.0.37/bfd/peigen.c Tue Apr 18 10:05:28 2000 @@ -434,11 +434,14 @@ _bfd_pei_swap_aouthdr_in (abfd, aouthdr_ GET_AOUTHDR_ENTRY (abfd, (bfd_byte *) aouthdr_ext->entry); aouthdr_int->text_start = GET_AOUTHDR_TEXT_START (abfd, (bfd_byte *) aouthdr_ext->text_start); +#ifndef COFF_WITH_PEP64 + /* PE32+ does not have data_start member! */ aouthdr_int->data_start = GET_AOUTHDR_DATA_START (abfd, (bfd_byte *) aouthdr_ext->data_start); +#endif a = &aouthdr_int->pe; - a->ImageBase = bfd_h_get_32 (abfd, (bfd_byte *)src->ImageBase); + a->ImageBase = GET_OPTHDR_IMAGE_BASE (abfd, (bfd_byte *)src->ImageBase); a->SectionAlignment = bfd_h_get_32 (abfd, (bfd_byte *)src->SectionAlignment); a->FileAlignment = bfd_h_get_32 (abfd, (bfd_byte *)src->FileAlignment); a->MajorOperatingSystemVersion = @@ -455,10 +458,10 @@ _bfd_pei_swap_aouthdr_in (abfd, aouthdr_ a->CheckSum = bfd_h_get_32 (abfd, (bfd_byte *)src->CheckSum); a->Subsystem = bfd_h_get_16 (abfd, (bfd_byte *)src->Subsystem); a->DllCharacteristics = bfd_h_get_16 (abfd, (bfd_byte *)src->DllCharacteristics); - a->SizeOfStackReserve = bfd_h_get_32 (abfd, (bfd_byte *)src->SizeOfStackReserve); - a->SizeOfStackCommit = bfd_h_get_32 (abfd, (bfd_byte *)src->SizeOfStackCommit); - a->SizeOfHeapReserve = bfd_h_get_32 (abfd, (bfd_byte *)src->SizeOfHeapReserve); - a->SizeOfHeapCommit = bfd_h_get_32 (abfd, (bfd_byte *)src->SizeOfHeapCommit); + a->SizeOfStackReserve = GET_OPTHDR_SIZE_OF_STACK_RESERVE (abfd, (bfd_byte *)src->SizeOfStackReserve); + a->SizeOfStackCommit = GET_OPTHDR_SIZE_OF_STACK_COMMIT (abfd, (bfd_byte *)src->SizeOfStackCommit); + a->SizeOfHeapReserve = GET_OPTHDR_SIZE_OF_HEAP_RESERVE (abfd, (bfd_byte *)src->SizeOfHeapReserve); + a->SizeOfHeapCommit = GET_OPTHDR_SIZE_OF_HEAP_COMMIT (abfd, (bfd_byte *)src->SizeOfHeapCommit); a->LoaderFlags = bfd_h_get_32 (abfd, (bfd_byte *)src->LoaderFlags); a->NumberOfRvaAndSizes = bfd_h_get_32 (abfd, (bfd_byte *)src->NumberOfRvaAndSizes); @@ -476,18 +479,25 @@ _bfd_pei_swap_aouthdr_in (abfd, aouthdr_ if (aouthdr_int->entry) { aouthdr_int->entry += a->ImageBase; +#ifndef COFF_WITH_PEP64 aouthdr_int->entry &= 0xffffffff; +#endif } if (aouthdr_int->tsize) { aouthdr_int->text_start += a->ImageBase; +#ifndef COFF_WITH_PEP64 aouthdr_int->text_start &= 0xffffffff; +#endif } +#ifndef COFF_WITH_PEP64 + /* PE32+ does not have data_start member! */ if (aouthdr_int->dsize) { aouthdr_int->data_start += a->ImageBase; aouthdr_int->data_start &= 0xffffffff; } +#endif #ifdef POWERPC_LE_PE /* These three fields are normally set up by ppc_relocate_section. @@ -532,10 +542,28 @@ _bfd_pei_swap_aouthdr_out (abfd, in, out struct internal_aouthdr *aouthdr_in = (struct internal_aouthdr *)in; struct internal_extra_pe_aouthdr *extra = &pe_data (abfd)->pe_opthdr; PEAOUTHDR *aouthdr_out = (PEAOUTHDR *)out; + bfd_vma sa, fa, ib; + + /* The following definitely is required for EFI applications. + Perhaps it's needed for other PEI targets as well, but I don't + know that for a fact, so we play it safe here and tweak the + alignments only if PEI_FORCE_MINIMUM_ALIGNMENT is + defined. --davidm */ +#ifdef PEI_FORCE_MINIMUM_ALIGNMENT + if (!extra->FileAlignment) + extra->FileAlignment = PE_DEF_FILE_ALIGNMENT; + if (!extra->SectionAlignment) + extra->SectionAlignment = PE_DEF_SECTION_ALIGNMENT; +#endif + +#ifdef PEI_DEFAULT_TARGET_SUBSYSTEM + if (extra->Subsystem == IMAGE_SUBSYSTEM_UNKNOWN) + extra->Subsystem = PEI_DEFAULT_TARGET_SUBSYSTEM; +#endif - bfd_vma sa = extra->SectionAlignment; - bfd_vma fa = extra->FileAlignment; - bfd_vma ib = extra->ImageBase ; + sa = extra->SectionAlignment; + fa = extra->FileAlignment; + ib = extra->ImageBase; if (aouthdr_in->tsize) { @@ -633,12 +661,14 @@ _bfd_pei_swap_aouthdr_out (abfd, in, out PUT_AOUTHDR_TEXT_START (abfd, aouthdr_in->text_start, (bfd_byte *) aouthdr_out->standard.text_start); +#ifndef COFF_WITH_PEP64 + /* PE32+ does not have data_start member! */ PUT_AOUTHDR_DATA_START (abfd, aouthdr_in->data_start, (bfd_byte *) aouthdr_out->standard.data_start); +#endif - - bfd_h_put_32 (abfd, extra->ImageBase, - (bfd_byte *) aouthdr_out->ImageBase); + PUT_OPTHDR_IMAGE_BASE (abfd, extra->ImageBase, + (bfd_byte *) aouthdr_out->ImageBase); bfd_h_put_32 (abfd, extra->SectionAlignment, (bfd_byte *) aouthdr_out->SectionAlignment); bfd_h_put_32 (abfd, extra->FileAlignment, @@ -667,14 +697,14 @@ _bfd_pei_swap_aouthdr_out (abfd, in, out (bfd_byte *) aouthdr_out->Subsystem); bfd_h_put_16 (abfd, extra->DllCharacteristics, (bfd_byte *) aouthdr_out->DllCharacteristics); - bfd_h_put_32 (abfd, extra->SizeOfStackReserve, - (bfd_byte *) aouthdr_out->SizeOfStackReserve); - bfd_h_put_32 (abfd, extra->SizeOfStackCommit, - (bfd_byte *) aouthdr_out->SizeOfStackCommit); - bfd_h_put_32 (abfd, extra->SizeOfHeapReserve, - (bfd_byte *) aouthdr_out->SizeOfHeapReserve); - bfd_h_put_32 (abfd, extra->SizeOfHeapCommit, - (bfd_byte *) aouthdr_out->SizeOfHeapCommit); + PUT_OPTHDR_SIZE_OF_STACK_RESERVE (abfd, extra->SizeOfStackReserve, + (bfd_byte *) aouthdr_out->SizeOfStackReserve); + PUT_OPTHDR_SIZE_OF_STACK_COMMIT (abfd, extra->SizeOfStackCommit, + (bfd_byte *) aouthdr_out->SizeOfStackCommit); + PUT_OPTHDR_SIZE_OF_HEAP_RESERVE (abfd, extra->SizeOfHeapReserve, + (bfd_byte *) aouthdr_out->SizeOfHeapReserve); + PUT_OPTHDR_SIZE_OF_HEAP_COMMIT (abfd, extra->SizeOfHeapCommit, + (bfd_byte *) aouthdr_out->SizeOfHeapCommit); bfd_h_put_32 (abfd, extra->LoaderFlags, (bfd_byte *) aouthdr_out->LoaderFlags); bfd_h_put_32 (abfd, extra->NumberOfRvaAndSizes, @@ -1473,18 +1503,27 @@ pe_print_edata (abfd, vfile) return true; } +/* This really is architecture dependent. On IA-64, a .pdata entry + consists of three dwords containing relative virtual addresses that + specify the start and end address of the code range the entry + covers and the address of the corresponding unwind info data. */ static boolean pe_print_pdata (abfd, vfile) bfd *abfd; PTR vfile; { +#ifdef COFF_WITH_PEP64 +# define PDATA_ROW_SIZE (3*8) +#else +# define PDATA_ROW_SIZE (5*4) +#endif FILE *file = (FILE *) vfile; bfd_byte *data = 0; asection *section = bfd_get_section_by_name (abfd, ".pdata"); bfd_size_type datasize = 0; bfd_size_type i; bfd_size_type start, stop; - int onaline = 20; + int onaline = PDATA_ROW_SIZE; if (section == NULL || coff_section_data (abfd, section) == NULL @@ -1498,10 +1537,15 @@ pe_print_pdata (abfd, vfile) fprintf (file, _("\nThe Function Table (interpreted .pdata section contents)\n")); +#ifdef COFF_WITH_PEP64 + fprintf(file, + _(" vma:\t\t\tBegin Address End Address Unwind Info\n")); +#else fprintf (file, _(" vma:\t\tBegin End EH EH PrologEnd Exception\n")); fprintf (file, _(" \t\tAddress Address Handler Data Address Mask\n")); +#endif if (bfd_section_size (abfd, section) == 0) return true; @@ -1527,14 +1571,14 @@ pe_print_pdata (abfd, vfile) bfd_vma prolog_end_addr; int em_data; - if (i + 20 > stop) + if (i + PDATA_ROW_SIZE > stop) break; - begin_addr = bfd_get_32(abfd, data+i); - end_addr = bfd_get_32(abfd, data+i+4); - eh_handler = bfd_get_32(abfd, data+i+8); - eh_data = bfd_get_32(abfd, data+i+12); - prolog_end_addr = bfd_get_32(abfd, data+i+16); + begin_addr = GET_PDATA_ENTRY(abfd, data+i); + end_addr = GET_PDATA_ENTRY(abfd, data+i+4); + eh_handler = GET_PDATA_ENTRY(abfd, data+i+8); + eh_data = GET_PDATA_ENTRY(abfd, data+i+12); + prolog_end_addr = GET_PDATA_ENTRY(abfd, data+i+16); if (begin_addr == 0 && end_addr == 0 && eh_handler == 0 && eh_data == 0 && prolog_end_addr == 0) @@ -1543,21 +1587,21 @@ pe_print_pdata (abfd, vfile) break; } - fprintf (file, - " %08lx\t", - (unsigned long int) (i + section->vma)); - em_data = ((eh_handler & 0x1) << 2) | (prolog_end_addr & 0x3); - eh_handler &= 0xfffffffc; - prolog_end_addr &= 0xfffffffc; + eh_handler &= ~ (bfd_vma) 0x3; + prolog_end_addr &= ~ (bfd_vma) 0x3; - fprintf (file, "%08lx %08lx %08lx %08lx %08lx %x", - begin_addr, - end_addr, - eh_handler, - eh_data, - prolog_end_addr, - em_data); + fputc (' ', file); + fprintf_vma (file, i + section->vma); fputc ('\t', file); + fprintf_vma (file, begin_addr); fputc (' ', file); + fprintf_vma (file, end_addr); fputc (' ', file); + fprintf_vma (file, eh_handler); +#ifndef COFF_WITH_PEP64 + fputc (' ', file); + fprintf_vma (file, eh_data); fputc (' ', file); + fprintf_vma (file, prolog_end_addr); + fprintf (file, " %x", em_data); +#endif #ifdef POWERPC_LE_PE if (eh_handler == 0 && eh_data != 0) @@ -1603,6 +1647,12 @@ static const char * const tbl[] = "HIGHLOW", "HIGHADJ", "MIPS_JMPADDR", +"SECTION", +"REL32", +"RESERVED1", +"MIPS_JMPADDR16", +"DIR64", +"HIGH3ADJ" "UNKNOWN", /* MUST be last */ }; @@ -1707,6 +1757,7 @@ _bfd_pe_print_private_bfd_data_common (a int j; pe_data_type *pe = pe_data (abfd); struct internal_extra_pe_aouthdr *i = &pe->pe_opthdr; + const char *subsystem_name = NULL; /* The MS dumpbin program reportedly ands with 0xff0f before printing the characteristics field. Not sure why. No reason to @@ -1744,8 +1795,40 @@ _bfd_pe_print_private_bfd_data_common (a fprintf (file,"SizeOfImage\t\t%08lx\n", i->SizeOfImage); fprintf (file,"SizeOfHeaders\t\t%08lx\n", i->SizeOfHeaders); fprintf (file,"CheckSum\t\t%08lx\n", i->CheckSum); - fprintf (file,"Subsystem\t\t%08x\n", i->Subsystem); - fprintf (file,"DllCharacteristics\t%08x\n", i->DllCharacteristics); + switch (i->Subsystem) + { + case IMAGE_SUBSYSTEM_UNKNOWN: + subsystem_name = "unspecified"; + break; + case IMAGE_SUBSYSTEM_NATIVE: + subsystem_name = "NT native"; + break; + case IMAGE_SUBSYSTEM_WINDOWS_GUI: + subsystem_name = "Windows GUI"; + break; + case IMAGE_SUBSYSTEM_WINDOWS_CUI: + subsystem_name = "Windows CUI"; + break; + case IMAGE_SUBSYSTEM_POSIX_CUI: + subsystem_name = "POSIX CUI"; + break; + case IMAGE_SUBSYSTEM_WINDOWS_CE_GUI: + subsystem_name = "Wince CUI"; + break; + case IMAGE_SUBSYSTEM_EFI_APPLICATION: + subsystem_name = "EFI application"; + break; + case IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER: + subsystem_name = "EFI boot service driver"; + break; + case IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER: + subsystem_name = "EFI runtime driver"; + break; + } + fprintf (file,"Subsystem\t\t%08x", i->Subsystem); + if (subsystem_name) + fprintf (file, "\t(%s)", subsystem_name); + fprintf (file,"\nDllCharacteristics\t%08x\n", i->DllCharacteristics); fprintf (file,"SizeOfStackReserve\t"); fprintf_vma (file, i->SizeOfStackReserve); fprintf (file,"\nSizeOfStackCommit\t"); diff -upr --new-file binutils-2.9.5.0.35/bfd/targets.c binutils-2.9.5.0.37/bfd/targets.c --- binutils-2.9.5.0.35/bfd/targets.c Wed Apr 12 10:27:27 2000 +++ binutils-2.9.5.0.37/bfd/targets.c Tue Apr 18 10:12:36 2000 @@ -505,6 +505,8 @@ extern const bfd_target arm_epoc_pei_lit extern const bfd_target arm_epoc_pei_big_vec; extern const bfd_target b_out_vec_big_host; extern const bfd_target b_out_vec_little_host; +extern const bfd_target bfd_efi_app_ia32_vec; +extern const bfd_target bfd_efi_app_ia64_vec; extern const bfd_target bfd_elf64_alpha_vec; extern const bfd_target bfd_elf32_avr_vec; extern const bfd_target bfd_elf32_bigarc_vec; @@ -688,6 +690,11 @@ const bfd_target * const bfd_target_vect &aout_mips_little_vec, &b_out_vec_big_host, &b_out_vec_little_host, + + &bfd_efi_app_ia32_vec, +#ifdef BFD64 + &bfd_efi_app_ia64_vec, +#endif /* This, and other vectors, may not be used in any *.mt configuration. But that does not mean they are unnecessary. If configured with diff -upr --new-file binutils-2.9.5.0.35/binutils/ChangeLog binutils-2.9.5.0.37/binutils/ChangeLog --- binutils-2.9.5.0.35/binutils/ChangeLog Wed Apr 12 10:04:45 2000 +++ binutils-2.9.5.0.37/binutils/ChangeLog Sun Apr 16 10:07:19 2000 @@ -1,3 +1,10 @@ +2000-04-14 Michael Sokolov + + * arlex.l: Add directives to increase lex buffer size. + + * objdump.c, readelf.c: Don't include strarg.h or varargs.h. They are + already included by bucomm.h. + 2000-04-10 Philippe De Muyter * readelf (dynamic_segment_mips_val): Call `sprintf', not diff -upr --new-file binutils-2.9.5.0.35/binutils/arlex.l binutils-2.9.5.0.37/binutils/arlex.l --- binutils-2.9.5.0.35/binutils/arlex.l Thu Jun 3 11:01:55 1999 +++ binutils-2.9.5.0.37/binutils/arlex.l Sun Apr 16 10:07:20 2000 @@ -31,6 +31,10 @@ Foundation, Inc., 59 Temple Place - Suit int linenumber; %} + +%a 10000 +%o 25000 + %% "ADDLIB" { return ADDLIB; } diff -upr --new-file binutils-2.9.5.0.35/binutils/objdump.c binutils-2.9.5.0.37/binutils/objdump.c --- binutils-2.9.5.0.35/binutils/objdump.c Wed Apr 12 10:27:32 2000 +++ binutils-2.9.5.0.37/binutils/objdump.c Sun Apr 16 10:13:33 2000 @@ -29,12 +29,6 @@ Foundation, 59 Temple Place - Suite 330, #include "debug.h" #include "budbg.h" -#ifdef ANSI_PROTOTYPES -#include -#else -#include -#endif - /* Internal headers for the ELF .stab-dump code - sorry. */ #define BYTES_IN_WORD 32 #include "aout/aout64.h" diff -upr --new-file binutils-2.9.5.0.35/binutils/readelf.c binutils-2.9.5.0.37/binutils/readelf.c --- binutils-2.9.5.0.35/binutils/readelf.c Wed Apr 12 10:27:32 2000 +++ binutils-2.9.5.0.37/binutils/readelf.c Sun Apr 16 10:13:33 2000 @@ -74,12 +74,6 @@ #include "bucomm.h" #include "getopt.h" -#ifdef ANSI_PROTOTYPES -#include -#else -#include -#endif - char * program_name = "readelf"; unsigned int dynamic_addr; bfd_size_type dynamic_size; diff -upr --new-file binutils-2.9.5.0.35/binutils.spec binutils-2.9.5.0.37/binutils.spec --- binutils-2.9.5.0.35/binutils.spec Wed Apr 12 11:06:11 2000 +++ binutils-2.9.5.0.37/binutils.spec Tue Apr 18 16:49:18 2000 @@ -1,6 +1,6 @@ Summary: GNU Binary Utility Development Utilities Name: binutils -Version: 2.9.5.0.35 +Version: 2.9.5.0.37 Release: 1 Copyright: GPL Group: Development/Tools diff -upr --new-file binutils-2.9.5.0.35/gas/ChangeLog binutils-2.9.5.0.37/gas/ChangeLog --- binutils-2.9.5.0.35/gas/ChangeLog Wed Apr 12 10:06:03 2000 +++ binutils-2.9.5.0.37/gas/ChangeLog Thu Apr 20 00:07:44 2000 @@ -1,3 +1,31 @@ +2000-04-17 Alan Modra + + * config/tc-i386.c (offset_in_range): Sign extend val so BFD64 + doesn't give spurious errors. + +2000-04-14 Michael Sokolov + + * as.h (SEEK_SET): Define if undefined. + +2000-04-13 Alan Modra + + * config/tc-arm.c (md_apply_fix3): Don't use UL suffix on + constants, and don't assume offsetT is 32 bits. + +2000-04-12 Andrew Cagney + + * config/tc-d10v.h: Include "write.h" to get definition of fixS. + (md_pcrel_from_section): Add prototype. + (d10v_fix_adjustable): Add prototype. + (d10v_force_relocation): Replace 'struct fix' with 'fixS'. + + * config/tc-d10v.c (md_apply_fix3): Add paren around &&. + +2000-04-12 Nick Clifton + + * config/tc-d10v.c (find_opcode): Correctly calculate position of + symbol in frag chain. + 2000-04-10 Alan Modra * config/tc-i386.c (fits_in_signed_byte): Change arg to offsetT. diff -upr --new-file binutils-2.9.5.0.35/gas/ChangeLog.linux binutils-2.9.5.0.37/gas/ChangeLog.linux --- binutils-2.9.5.0.35/gas/ChangeLog.linux Mon Apr 3 10:08:29 2000 +++ binutils-2.9.5.0.37/gas/ChangeLog.linux Tue Apr 18 23:09:43 2000 @@ -1,3 +1,8 @@ +2000-04-18 H.J. Lu (hjl@gnu.org) + + * config/tc-i386.c (offset_in_range): Use addressT instead of + bfd_vma for none bfd assemblers. + Thu Aug 12 16:56:08 1999 Ralf Baechle * config/obj-elf.c (obj_elf_ident): Make it extern. diff -upr --new-file binutils-2.9.5.0.35/gas/as.h binutils-2.9.5.0.37/gas/as.h --- binutils-2.9.5.0.35/gas/as.h Mon Apr 3 10:08:29 2000 +++ binutils-2.9.5.0.37/gas/as.h Sun Apr 16 10:13:36 2000 @@ -211,6 +211,10 @@ extern char **environ; #define EXIT_FAILURE 1 #endif +#ifndef SEEK_SET +#define SEEK_SET 0 +#endif + #define obstack_chunk_alloc xmalloc #define obstack_chunk_free xfree diff -upr --new-file binutils-2.9.5.0.35/gas/config/tc-arm.c binutils-2.9.5.0.37/gas/config/tc-arm.c --- binutils-2.9.5.0.35/gas/config/tc-arm.c Wed Apr 12 10:06:16 2000 +++ binutils-2.9.5.0.37/gas/config/tc-arm.c Sun Apr 16 10:08:31 2000 @@ -5571,8 +5571,8 @@ md_apply_fix3 (fixP, val, seg) instruction, in a 24 bit, signed field. Thus we need to check that none of the top 8 bits of the shifted value (top 7 bits of the unshifted, unsigned value) are set, or that they are all set. */ - if ((value & 0xfe000000UL) != 0 - && ((value & 0xfe000000UL) != 0xfe000000UL)) + if ((value & ~ ((offsetT) 0x1ffffff)) != 0 + && ((value & ~ ((offsetT) 0x1ffffff)) != ~ ((offsetT) 0x1ffffff))) { #ifdef OBJ_ELF /* Normally we would be stuck at this point, since we cannot store @@ -5595,8 +5595,8 @@ md_apply_fix3 (fixP, val, seg) /* Permit a backward branch provided that enough bits are set. Allow a forwards branch, provided that enough bits are clear. */ - if ((value & 0xfe000000UL) == 0xfe000000UL - || (value & 0xfe000000UL) == 0) + if ((value & ~ ((offsetT) 0x1ffffff)) == ~ ((offsetT) 0x1ffffff) + || (value & ~ ((offsetT) 0x1ffffff)) == 0) fixP->fx_done = 1; } @@ -5609,8 +5609,8 @@ md_apply_fix3 (fixP, val, seg) value >>= 2; value += SEXT24 (newval); - if ((value & 0xff000000UL) != 0 - && ((value & 0xff000000UL) != 0xff000000UL)) + if ((value & ~ ((offsetT) 0xffffff)) != 0 + && ((value & ~ ((offsetT) 0xffffff)) != ~ ((offsetT) 0xffffff))) as_bad_where (fixP->fx_file, fixP->fx_line, _("out of range branch")); diff -upr --new-file binutils-2.9.5.0.35/gas/config/tc-d10v.c binutils-2.9.5.0.37/gas/config/tc-d10v.c --- binutils-2.9.5.0.35/gas/config/tc-d10v.c Sat Feb 19 11:22:05 2000 +++ binutils-2.9.5.0.37/gas/config/tc-d10v.c Sun Apr 16 10:08:31 2000 @@ -1235,6 +1235,7 @@ find_opcode (opcode, myops) int flags = d10v_operands[next_opcode->operands[opnum]].flags; if (flags & OPERAND_ADDR) bits += 2; + if (myops[opnum].X_op == O_constant) { if (!check_range (myops[opnum].X_add_number, bits, flags)) @@ -1242,19 +1243,39 @@ find_opcode (opcode, myops) } else { - fragS *f; - long value; - /* calculate the current address by running through the previous frags */ - /* and adding our current offset */ - for (value = 0, f = frchain_now->frch_root; f; f = f->fr_next) - value += f->fr_fix + f->fr_offset; + fragS * sym_frag; + fragS * f; + unsigned long current_position; + unsigned long symbol_position; + unsigned long value; + boolean found_symbol; + + /* Calculate the address of the current instruction + and the address of the symbol. Do this by summing + the offsets of previous frags until we reach the + frag containing the symbol, and the current frag. */ + sym_frag = symbol_get_frag (myops[opnum].X_add_symbol); + found_symbol = false; - if (flags & OPERAND_ADDR) - value = S_GET_VALUE(myops[opnum].X_add_symbol) - value - - (obstack_next_free(&frchain_now->frch_obstack) - frag_now->fr_literal); - else - value += S_GET_VALUE(myops[opnum].X_add_symbol); + current_position = obstack_next_free (&frchain_now->frch_obstack) - frag_now->fr_literal; + symbol_position = S_GET_VALUE (myops[opnum].X_add_symbol); + + for (f = frchain_now->frch_root; f; f = f->fr_next) + { + current_position += f->fr_fix + f->fr_offset; + + if (f == sym_frag) + found_symbol = true; + + if (! found_symbol) + symbol_position += f->fr_fix + f->fr_offset; + } + value = symbol_position; + + if (flags & OPERAND_ADDR) + value -= current_position; + if (AT_WORD_P (&myops[opnum])) { if (bits > 4) @@ -1518,8 +1539,8 @@ md_apply_fix3 (fixp, valuep, seg) rep = (struct d10v_opcode *) hash_find (d10v_hash, "rep"); repi = (struct d10v_opcode *) hash_find (d10v_hash, "repi"); if ((insn & FM11) == FM11 - && (repi != NULL && (insn & repi->mask) == repi->opcode - || rep != NULL && (insn & rep->mask) == rep->opcode) + && ((repi != NULL && (insn & repi->mask) == repi->opcode) + || (rep != NULL && (insn & rep->mask) == rep->opcode)) && value < 4) as_fatal (_("line %d: rep or repi must include at least 4 instructions"), @@ -1653,7 +1674,7 @@ d10v_fix_adjustable (fixP) int d10v_force_relocation (fixp) - struct fix *fixp; + fixS *fixp; { if (fixp->fx_r_type == BFD_RELOC_VTABLE_INHERIT || fixp->fx_r_type == BFD_RELOC_VTABLE_ENTRY) diff -upr --new-file binutils-2.9.5.0.35/gas/config/tc-d10v.h binutils-2.9.5.0.37/gas/config/tc-d10v.h --- binutils-2.9.5.0.35/gas/config/tc-d10v.h Mon Apr 3 09:46:24 2000 +++ binutils-2.9.5.0.37/gas/config/tc-d10v.h Sun Apr 16 10:08:31 2000 @@ -19,6 +19,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include "write.h" /* For the definition of fixS. */ + #define TC_D10V #define TARGET_BYTES_BIG_ENDIAN 0 @@ -36,6 +38,7 @@ /* call md_pcrel_from_section, not md_pcrel_from */ #define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section(FIXP, SEC) +long md_pcrel_from_section PARAMS ((fixS *, segT)); /* Permit temporary numeric labels. */ #define LOCAL_LABELS_FB 1 @@ -57,7 +60,8 @@ int d10v_cleanup PARAMS ((void)); } while (0) #define obj_fix_adjustable(fixP) d10v_fix_adjustable(fixP) +boolean d10v_fix_adjustable PARAMS ((fixS *)); #define TC_FORCE_RELOCATION(fixp) d10v_force_relocation(fixp) -extern int d10v_force_relocation PARAMS ((struct fix *)); +extern int d10v_force_relocation PARAMS ((fixS *)); #define md_flush_pending_output d10v_cleanup diff -upr --new-file binutils-2.9.5.0.35/gas/config/tc-i386.c binutils-2.9.5.0.37/gas/config/tc-i386.c --- binutils-2.9.5.0.35/gas/config/tc-i386.c Wed Apr 12 10:27:34 2000 +++ binutils-2.9.5.0.37/gas/config/tc-i386.c Tue Apr 18 10:50:19 2000 @@ -465,14 +465,19 @@ offset_in_range (val, size) offsetT val; int size; { - offsetT mask; + addressT mask; + switch (size) { - case 1: mask = ((offsetT) 1 << 8) - 1; break; - case 2: mask = ((offsetT) 1 << 16) - 1; break; - case 4: mask = ((offsetT) 1 << 32) - 1; break; + case 1: mask = ((addressT) 1 << 8) - 1; break; + case 2: mask = ((addressT) 1 << 16) - 1; break; + case 4: mask = ((addressT) 1 << 32) - 1; break; default: abort(); } + + /* If BFD64, sign extend val. */ + if ((val & ~ (((addressT) 1 << 32) - 1)) == 0) + val = (val ^ ((addressT) 1 << 31)) - ((addressT) 1 << 31); if ((val & ~ mask) != 0 && (val & ~ mask) != ~ mask) { diff -upr --new-file binutils-2.9.5.0.35/include/coff/ChangeLog binutils-2.9.5.0.37/include/coff/ChangeLog --- binutils-2.9.5.0.35/include/coff/ChangeLog Wed Apr 12 10:05:58 2000 +++ binutils-2.9.5.0.37/include/coff/ChangeLog Tue Apr 18 10:05:41 2000 @@ -1,3 +1,30 @@ +2000-04-17 Timothy Wall + + * ti.h: Load page cleanup. + * intental.h: Add load page field. + +Mon Apr 17 16:44:01 2000 David Mosberger + + * pe.h (PEP64AOUTHDR): New header for PE+. + (PEP64AOUTSZ): New macro. + (IMAGE_SUBSYSTEM_UNKNOWN): New macro. + (IMAGE_SUBSYSTEM_NATIVE): Ditto. + (IMAGE_SUBSYSTEM_WINDOWS_GUI): Ditto. + (IMAGE_SUBSYSTEM_WINDOWS_CUI): Ditto. + (IMAGE_SUBSYSTEM_POSIX_CUI): Ditto. + (IMAGE_SUBSYSTEM_WINDOWS_CE_GUI): Ditto. + (IMAGE_SUBSYSTEM_EFI_APPLICATION): Ditto. + (IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER): Ditto. + (IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER): Ditto. + * internal.h (PE_DEF_FILE_ALIGNMENT): Define only if not defined + already. + * ia64.h: New file. + +2000-04-13 Alan Modra + + * ti.h (ADDR_MASK): Don't use ul suffix on constants. + (PG_MASK): Ditto. + 2000-04-11 Timothy Wall * ti.h: Remove load page references until load pages are diff -upr --new-file binutils-2.9.5.0.35/include/coff/ia64.h binutils-2.9.5.0.37/include/coff/ia64.h --- binutils-2.9.5.0.35/include/coff/ia64.h Wed Dec 31 16:00:00 1969 +++ binutils-2.9.5.0.37/include/coff/ia64.h Tue Apr 18 10:05:42 2000 @@ -0,0 +1,222 @@ +/*** coff information for HP/Intel IA-64. */ + + +/********************** FILE HEADER **********************/ + +struct external_filehdr { + char f_magic[2]; /* magic number */ + char f_nscns[2]; /* number of sections */ + char f_timdat[4]; /* time & date stamp */ + char f_symptr[4]; /* file pointer to symtab */ + char f_nsyms[4]; /* number of symtab entries */ + char f_opthdr[2]; /* sizeof(optional hdr) */ + char f_flags[2]; /* flags */ +}; + +#define IA64MAGIC 0x200 + +#define IA64BADMAG(x) (((x).f_magic != IA64MAGIC)) + +/* Bits for f_flags: + * F_RELFLG relocation info stripped from file + * F_EXEC file is executable (no unresolved external references) + * F_LNNO line numbers stripped from file + * F_LSYMS local symbols stripped from file + * F_AR32WR file has byte ordering of an AR32WR machine (e.g. vax) + */ + +#define F_RELFLG (0x0001) +#define F_EXEC (0x0002) +#define F_LNNO (0x0004) +#define F_LSYMS (0x0008) + + +#define FILHDR struct external_filehdr +#define FILHSZ 20 + + +/********************** AOUT "OPTIONAL HEADER" **********************/ + + +typedef struct +{ + char magic[2]; /* type of file */ + char vstamp[2]; /* version stamp */ + char tsize[4]; /* text size in bytes, padded to FW bdry*/ + char dsize[4]; /* initialized data " " */ + char bsize[4]; /* uninitialized data " " */ + char entry[4]; /* entry pt. */ + char text_start[4]; /* base of text used for this file */ +#ifndef BFD64 + char data_start[4]; /* base of data used for this file */ +#endif +} +AOUTHDR; + +#define PE32MAGIC 0x10b /* 32-bit image */ +#define PE32PMAGIC 0x20b /* 32-bit image inside 64-bit address space */ + +#define PE32PBADMAG(x) (((x).f_magic != PE32PMAGIC)) + +#define AOUTSZ 108 +#define AOUTHDRSZ 108 + +#define OMAGIC 0404 /* object files, eg as output */ +#define ZMAGIC 0413 /* demand load format, eg normal ld output */ +#define STMAGIC 0401 /* target shlib */ +#define SHMAGIC 0443 /* host shlib */ + + +/* define some NT default values */ +/* #define NT_IMAGE_BASE 0x400000 moved to internal.h */ +#define NT_SECTION_ALIGNMENT 0x1000 +#define NT_FILE_ALIGNMENT 0x200 +#define NT_DEF_RESERVE 0x100000 +#define NT_DEF_COMMIT 0x1000 + +/********************** SECTION HEADER **********************/ + + +struct external_scnhdr { + char s_name[8]; /* section name */ + char s_paddr[4]; /* physical address, aliased s_nlib */ + char s_vaddr[4]; /* virtual address */ + char s_size[4]; /* section size */ + char s_scnptr[4]; /* file ptr to raw data for section */ + char s_relptr[4]; /* file ptr to relocation */ + char s_lnnoptr[4]; /* file ptr to line numbers */ + char s_nreloc[2]; /* number of relocation entries */ + char s_nlnno[2]; /* number of line number entries*/ + char s_flags[4]; /* flags */ +}; + +#define SCNHDR struct external_scnhdr +#define SCNHSZ 40 + +/* + * names of "special" sections + */ +#define _TEXT ".text" +#define _DATA ".data" +#define _BSS ".bss" +#define _COMMENT ".comment" +#define _LIB ".lib" + +/********************** LINE NUMBERS **********************/ + +/* 1 line number entry for every "breakpointable" source line in a section. + * Line numbers are grouped on a per function basis; first entry in a function + * grouping will have l_lnno = 0 and in place of physical address will be the + * symbol table index of the function name. + */ +struct external_lineno { + union { + char l_symndx[4]; /* function name symbol index, iff l_lnno == 0*/ + char l_paddr[4]; /* (physical) address of line number */ + } l_addr; + char l_lnno[2]; /* line number */ +}; + + +#define LINENO struct external_lineno +#define LINESZ 6 + + +/********************** SYMBOLS **********************/ + +#define E_SYMNMLEN 8 /* # characters in a symbol name */ +#define E_FILNMLEN 14 /* # characters in a file name */ +#define E_DIMNUM 4 /* # array dimensions in auxiliary entry */ + +struct external_syment +{ + union { + char e_name[E_SYMNMLEN]; + struct { + char e_zeroes[4]; + char e_offset[4]; + } e; + } e; + char e_value[4]; + char e_scnum[2]; + char e_type[2]; + char e_sclass[1]; + char e_numaux[1]; +}; + +#define N_BTMASK (0xf) +#define N_TMASK (0x30) +#define N_BTSHFT (4) +#define N_TSHIFT (2) + +union external_auxent { + struct { + char x_tagndx[4]; /* str, un, or enum tag indx */ + union { + struct { + char x_lnno[2]; /* declaration line number */ + char x_size[2]; /* str/union/array size */ + } x_lnsz; + char x_fsize[4]; /* size of function */ + } x_misc; + union { + struct { /* if ISFCN, tag, or .bb */ + char x_lnnoptr[4]; /* ptr to fcn line # */ + char x_endndx[4]; /* entry ndx past block end */ + } x_fcn; + struct { /* if ISARY, up to 4 dimen. */ + char x_dimen[E_DIMNUM][2]; + } x_ary; + } x_fcnary; + char x_tvndx[2]; /* tv index */ + } x_sym; + + union { + char x_fname[E_FILNMLEN]; + struct { + char x_zeroes[4]; + char x_offset[4]; + } x_n; + } x_file; + + struct { + char x_scnlen[4]; /* section length */ + char x_nreloc[2]; /* # relocation entries */ + char x_nlinno[2]; /* # line numbers */ + char x_checksum[4]; /* section COMDAT checksum */ + char x_associated[2]; /* COMDAT associated section index */ + char x_comdat[1]; /* COMDAT selection number */ + } x_scn; + + struct { + char x_tvfill[4]; /* tv fill value */ + char x_tvlen[2]; /* length of .tv */ + char x_tvran[2][2]; /* tv range */ + } x_tv; /* info about .tv section (in auxent of symbol .tv)) */ + + +}; + +#define SYMENT struct external_syment +#define SYMESZ 18 +#define AUXENT union external_auxent +#define AUXESZ 18 + + +# define _ETEXT "etext" + + +/********************** RELOCATION DIRECTIVES **********************/ + + + +struct external_reloc { + char r_vaddr[4]; + char r_symndx[4]; + char r_type[2]; +}; + + +#define RELOC struct external_reloc +#define RELSZ 10 + diff -upr --new-file binutils-2.9.5.0.35/include/coff/internal.h binutils-2.9.5.0.37/include/coff/internal.h --- binutils-2.9.5.0.35/include/coff/internal.h Wed Apr 12 10:05:58 2000 +++ binutils-2.9.5.0.37/include/coff/internal.h Tue Apr 18 10:05:41 2000 @@ -100,7 +100,9 @@ typedef struct _IMAGE_DATA_DIRECTORY /* Extra stuff in a PE aouthdr */ #define PE_DEF_SECTION_ALIGNMENT 0x1000 -#define PE_DEF_FILE_ALIGNMENT 0x200 +#ifndef PE_DEF_FILE_ALIGNMENT +# define PE_DEF_FILE_ALIGNMENT 0x200 +#endif struct internal_extra_pe_aouthdr { @@ -301,6 +303,7 @@ struct internal_scnhdr unsigned long s_nlnno; /* number of line number entries*/ long s_flags; /* flags */ long s_align; /* used on I960 */ + unsigned char s_page; /* TI COFF load page */ }; /* diff -upr --new-file binutils-2.9.5.0.35/include/coff/pe.h binutils-2.9.5.0.37/include/coff/pe.h --- binutils-2.9.5.0.35/include/coff/pe.h Fri Feb 25 14:34:45 2000 +++ binutils-2.9.5.0.37/include/coff/pe.h Tue Apr 18 10:05:41 2000 @@ -89,12 +89,22 @@ #define IMAGE_FILE_MACHINE_SH4 0x1a6 #define IMAGE_FILE_MACHINE_THUMB 0x1c2 +#define IMAGE_SUBSYSTEM_UNKNOWN 0 +#define IMAGE_SUBSYSTEM_NATIVE 1 +#define IMAGE_SUBSYSTEM_WINDOWS_GUI 2 +#define IMAGE_SUBSYSTEM_WINDOWS_CUI 3 +#define IMAGE_SUBSYSTEM_POSIX_CUI 7 +#define IMAGE_SUBSYSTEM_WINDOWS_CE_GUI 9 +#define IMAGE_SUBSYSTEM_EFI_APPLICATION 10 +#define IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER 11 +#define IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER 12 + /* Magic values that are true for all dos/nt implementations */ #define DOSMAGIC 0x5a4d #define NT_SIGNATURE 0x00004550 - /* NT allows long filenames, we want to accommodate this. This may break - some of the bfd functions */ +/* NT allows long filenames, we want to accommodate this. This may break + some of the bfd functions */ #undef FILNMLEN #define FILNMLEN 18 /* # characters in a file name */ @@ -132,7 +142,6 @@ struct external_PEI_filehdr char f_nsyms[4]; /* number of symtab entries */ char f_opthdr[2]; /* sizeof(optional hdr) */ char f_flags[2]; /* flags */ - }; #ifdef COFF_IMAGE_WITH_PE @@ -146,6 +155,8 @@ struct external_PEI_filehdr #endif /* COFF_IMAGE_WITH_PE */ +/* 32-bit PE a.out header: */ + typedef struct { AOUTHDR standard; @@ -174,13 +185,44 @@ typedef struct char NumberOfRvaAndSizes[4]; /* IMAGE_DATA_DIRECTORY DataDirectory[IMAGE_NUMBEROF_DIRECTORY_ENTRIES]; */ char DataDirectory[16][2][4]; /* 16 entries, 2 elements/entry, 4 chars */ - } PEAOUTHDR; - - #undef AOUTSZ #define AOUTSZ (AOUTHDRSZ + 196) +/* Like PEAOUTHDR, except that the "standard" member has no BaseOfData + (aka data_start) member and that some of the members are 8 instead + of just 4 bytes long. */ +typedef struct +{ + AOUTHDR standard; + + /* NT extra fields; see internal.h for descriptions */ + char ImageBase[8]; + char SectionAlignment[4]; + char FileAlignment[4]; + char MajorOperatingSystemVersion[2]; + char MinorOperatingSystemVersion[2]; + char MajorImageVersion[2]; + char MinorImageVersion[2]; + char MajorSubsystemVersion[2]; + char MinorSubsystemVersion[2]; + char Reserved1[4]; + char SizeOfImage[4]; + char SizeOfHeaders[4]; + char CheckSum[4]; + char Subsystem[2]; + char DllCharacteristics[2]; + char SizeOfStackReserve[8]; + char SizeOfStackCommit[8]; + char SizeOfHeapReserve[8]; + char SizeOfHeapCommit[8]; + char LoaderFlags[4]; + char NumberOfRvaAndSizes[4]; + /* IMAGE_DATA_DIRECTORY DataDirectory[IMAGE_NUMBEROF_DIRECTORY_ENTRIES]; */ + char DataDirectory[16][2][4]; /* 16 entries, 2 elements/entry, 4 chars */ +} PEP64AOUTHDR; +#define PEP64AOUTSZ 240 + #undef E_FILNMLEN #define E_FILNMLEN 18 /* # characters in a file name */ diff -upr --new-file binutils-2.9.5.0.35/include/coff/ti.h binutils-2.9.5.0.37/include/coff/ti.h --- binutils-2.9.5.0.35/include/coff/ti.h Wed Apr 12 10:05:59 2000 +++ binutils-2.9.5.0.37/include/coff/ti.h Tue Apr 18 10:05:42 2000 @@ -71,12 +71,10 @@ struct external_filehdr { #define COFF2_BADMAG(x) ((x).f_magic != TICOFF2MAGIC || (x).f_target_id != TI_TARGET_ID) /* we need to read/write an extra field in the coff file header */ -/* FIXME load page */ #ifndef COFF_ADJUST_FILEHDR_IN_POST #define COFF_ADJUST_FILEHDR_IN_POST(abfd,src,dst) \ do { ((struct internal_filehdr *)(dst))->f_target_id = \ bfd_h_get_16(abfd, (bfd_byte *)(((FILHDR *)(src))->f_target_id)); \ -/*((struct internal_filehdr *)(dst))->f_flags |= F_LDPAGE;*/ \ } while(0) #endif @@ -161,9 +159,6 @@ struct external_scnhdr { /* * Special section flags */ -/* recognized load pages */ -#define PG_PROG 0x0 /* PROG page */ -#define PG_DATA 0x1 /* DATA page */ /* TI COFF defines these flags; STYP_CLINK: the section should be excluded from the final @@ -212,18 +207,15 @@ bfd_h_put_8 (ABFD,VAL,(PTR)-7), bfd_h_pu #define PUT_SCNHDR_SIZE(ABFD,SZ,SZP) \ bfd_h_put_32(ABFD,(SZ)/bfd_octets_per_byte(ABFD),SZP) -/* FIXME load page #define COFF_ADJUST_SCNHDR_IN_POST(ABFD,EXT,INT) \ do { ((struct internal_scnhdr *)(INT))->s_page = \ GET_SCNHDR_PAGE(ABFD,(bfd_byte *)((SCNHDR *)(EXT))->s_page); \ } while(0) -*/ /* The line number and reloc overflow checking in coff_swap_scnhdr_out in coffswap.h doesn't use PUT_X for s_nlnno and s_nreloc. Due to different sized v0/v1/v2 section headers, we have to re-write these fields. - FIXME load page */ #define COFF_ADJUST_SCNHDR_OUT_POST(ABFD,INT,EXT) \ do { \ @@ -233,13 +225,13 @@ PUT_SCNHDR_NRELOC(ABFD,((struct internal (bfd_byte *)((SCNHDR *)(EXT))->s_nreloc); \ PUT_SCNHDR_FLAGS(ABFD,((struct internal_scnhdr *)(INT))->s_flags, \ (bfd_byte *)((SCNHDR *)(EXT))->s_flags); \ -/*PUT_SCNHDR_PAGE(ABFD,((struct internal_scnhdr *)(INT))->s_page, \ - (bfd_byte *)((SCNHDR *)(EXT))->s_page);*/ \ +PUT_SCNHDR_PAGE(ABFD,((struct internal_scnhdr *)(INT))->s_page, \ + (bfd_byte *)((SCNHDR *)(EXT))->s_page); \ } while(0) -/* page macros +/* Page macros - the first GDB port requires flags in its remote memory access commands to + The first GDB port requires flags in its remote memory access commands to distinguish between data/prog space. hopefully we can make this go away eventually. stuff the page in the upper bits of a 32-bit address, since the c5x family only uses 16 or 23 bits. @@ -250,12 +242,13 @@ PUT_SCNHDR_FLAGS(ABFD,((struct internal_ addresses. */ -#define LONG_ADDRESSES 1 -#define PG_SHIFT (LONG_ADDRESSES ? 30 : 16) -#define ADDR_MASK ((1ul<>PG_SHIFT) +/* recognized load pages */ +#define PG_PROG 0x0 /* PROG page */ +#define PG_DATA 0x1 /* DATA page */ + +#define ADDR_MASK 0x00FFFFFF +#define PG_TO_FLAG(p) (((unsigned long)(p) & 0xFF) << 24) +#define FLAG_TO_PG(f) (((f) >> 24) & 0xFF) /* * names of "special" sections diff -upr --new-file binutils-2.9.5.0.35/include/elf/ChangeLog binutils-2.9.5.0.37/include/elf/ChangeLog --- binutils-2.9.5.0.35/include/elf/ChangeLog Wed Apr 12 10:05:59 2000 +++ binutils-2.9.5.0.37/include/elf/ChangeLog Sun Apr 16 10:08:19 2000 @@ -1,3 +1,17 @@ +2000-04-14 H.J. Lu + + * common.h (ELFOSABI_TRUE64): Renamed to ELFOSABI_TRU64. + +2000-04-14 H.J. Lu + + * common.h (ELFOSABI_NETBSD): Defined. + (ELFOSABI_HURD): Likewise. + (ELFOSABI_SOLARIS): Likewise. + (ELFOSABI_MONTEREY): Likewise. + (ELFOSABI_IRIX): Likewise. + (ELFOSABI_FREEBSD): Likewise. + (ELFOSABI_TRUE64): Likewise. + 2000-04-07 Nick Clifton * arm-oabi.h: Delete. diff -upr --new-file binutils-2.9.5.0.35/include/elf/common.h binutils-2.9.5.0.37/include/elf/common.h --- binutils-2.9.5.0.35/include/elf/common.h Fri Mar 31 09:28:46 2000 +++ binutils-2.9.5.0.37/include/elf/common.h Sun Apr 16 10:13:39 2000 @@ -60,7 +60,14 @@ Foundation, Inc., 59 Temple Place - Suit #define EI_OSABI 7 /* Operating System/ABI indication */ #define ELFOSABI_SYSV 0 /* UNIX System V ABI */ #define ELFOSABI_HPUX 1 /* HP-UX operating system */ +#define ELFOSABI_NETBSD 2 /* NetBSD */ #define ELFOSABI_LINUX 3 /* GNU/Linux */ +#define ELFOSABI_HURD 4 /* GNU/Hurd */ +#define ELFOSABI_SOLARIS 6 /* Solaris */ +#define ELFOSABI_MONTEREY 7 /* Monterey */ +#define ELFOSABI_IRIX 8 /* IRIX */ +#define ELFOSABI_FREEBSD 9 /* FreeBSD */ +#define ELFOSABI_TRU64 10 /* TRU64 UNIX */ #define ELFOSABI_STANDALONE 255 /* Standalone (embedded) application */ #define ELFOSABI_ARM 97 /* ARM */ diff -upr --new-file binutils-2.9.5.0.35/ld/ChangeLog binutils-2.9.5.0.37/ld/ChangeLog --- binutils-2.9.5.0.35/ld/ChangeLog Wed Apr 12 10:06:52 2000 +++ binutils-2.9.5.0.37/ld/ChangeLog Tue Apr 18 10:06:25 2000 @@ -1,3 +1,43 @@ +2000-04-18 Alan Modra + + * emultempl/elf32.em (struct orphan_save): Add section field. + (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in + better order, and place first orphan section as we did before the + 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place. + Don't call make_bfd_section here, let wild_doit do the job for us. + Don't build a statement list when we'll only throw it away. + * emultempl/armelf.em: Ditto. + * emultempl/pe.em: Similarly. + +2000-04-14 Geoff Keating + + * scripttempl/elfppc.sc: Remove. + * emulparams/elf32ppc.sh: Use elf.sc. + * emulparams/elf32lppc.sh: Use elf.sc. + * emulparams/elf32ppclinux.sh: Use elf.sc. + * emulparams/elf32ppcsim.sh: New file. + * emulparams/elf32lppcsim.sh: New file. + * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim. + (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim. + * Makefile.in: Regenerate. + * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim. + +2000-04-14 Alan Modra + + * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process + ~SEC_ALLOC sections too. Init start address of debug sections. + * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto. + * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto. + Also set all relocateable section start addresses. + +2000-04-13 Geoff Keating + + * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections. + Add new BSS_PLT variable for when .plt need not be contained in + the file. Move _etext so that it is also after .fini, and provide + both etext and _etext with a leading underscore. Mark the start + and end of .sbss. + 2000-04-12 Alan Modra * emultempl/elf32.em (struct orphan_save): New. @@ -208,11 +248,11 @@ Fri Apr 7 15:56:57 2000 Andrew Cagney * ldgram.y: Handle LMA region syntax. * ld.texinfo (Output Section Description): Describe LMA region usage. * emultempl/armelf.em (gld$place_orphan): Add default value for - lma region in call to lang_leave_output_statement. + lma region in call to lang_leave_output_section_statement. * emultempl/elf32.em (gld$place_orphan): Add default value for - lma region in call to lang_leave_output_statement. + lma region in call to lang_leave_output_section_statement. * emultempl/pe.em (gld$place_orphan): Add default value for - lma region in call to lang_leave_output_statement. + lma region in call to lang_leave_output_section_statement. 2000-02-04 Timothy Wall diff -upr --new-file binutils-2.9.5.0.35/ld/ChangeLog.linux binutils-2.9.5.0.37/ld/ChangeLog.linux --- binutils-2.9.5.0.35/ld/ChangeLog.linux Wed Apr 12 10:26:36 2000 +++ binutils-2.9.5.0.37/ld/ChangeLog.linux Tue Apr 18 16:42:35 2000 @@ -1,7 +1,13 @@ -2000-04-06 Franz Sirl +2000-04-18 H.J. Lu - * scripttempl/elfppc.sc: Sort constructors, add more stab - sections. + * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call + lang_leave_output_section_statement () after calling + lang_enter_output_section_statement (). + * emultempl/armelf.em: Likewise. + +2000-04-12 Ken Block USG + + * lexsup.c (ld_options): Make "style" takes an argument. 2000-03-07 H.J. Lu diff -upr --new-file binutils-2.9.5.0.35/ld/Makefile.am binutils-2.9.5.0.37/ld/Makefile.am --- binutils-2.9.5.0.35/ld/Makefile.am Wed Apr 12 10:27:35 2000 +++ binutils-2.9.5.0.37/ld/Makefile.am Sun Apr 16 10:13:42 2000 @@ -140,7 +140,9 @@ ALL_EMULATIONS = \ eelf32l4300.o \ eelf32lmip.o \ eelf32lppc.o \ + eelf32lppcsim.o \ eelf32ppc.o \ + eelf32ppcsim.o \ eelf32ppclinux.o \ eelf_i386.o \ eelf_i386_be.o \ @@ -424,16 +426,22 @@ eelf32lmip.c: $(srcdir)/emulparams/elf32 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ${GENSCRIPTS} elf32lmip "$(tdir_elf32lmip)" eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \ - $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfppc.sc ${GEN_DEPENDS} + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ${GENSCRIPTS} elf32lppc "$(tdir_elf32lppc)" +eelf32lppcsim.c: $(srcdir)/emulparams/elf32lppcsim.sh \ + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} elf32lppcsim "$(tdir_elf32lppcsim)" eelf32lsmip.c: $(srcdir)/emulparams/elf32lsmip.sh \ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ${GENSCRIPTS} elf32lsmip "$(tdir_elf32lsmip)" eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \ - $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfppc.sc ${GEN_DEPENDS} + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ${GENSCRIPTS} elf32ppc "$(tdir_elf32ppc)" +eelf32ppcsim.c: $(srcdir)/emulparams/elf32ppcsim.sh \ + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} elf32ppcsim "$(tdir_elf32ppcsim)" eelf32ppclinux.c: $(srcdir)/emulparams/elf32ppclinux.sh \ - $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfppc.sc ${GEN_DEPENDS} + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ${GENSCRIPTS} elf32ppclinux "$(tdir_elf32ppclinux)" eelf32i370.c: $(srcdir)/emulparams/elf32i370.sh \ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfi370.sc ${GEN_DEPENDS} diff -upr --new-file binutils-2.9.5.0.35/ld/Makefile.in binutils-2.9.5.0.37/ld/Makefile.in --- binutils-2.9.5.0.35/ld/Makefile.in Wed Apr 12 10:27:35 2000 +++ binutils-2.9.5.0.37/ld/Makefile.in Sun Apr 16 10:13:42 2000 @@ -243,7 +243,9 @@ ALL_EMULATIONS = \ eelf32l4300.o \ eelf32lmip.o \ eelf32lppc.o \ + eelf32lppcsim.o \ eelf32ppc.o \ + eelf32ppcsim.o \ eelf32ppclinux.o \ eelf_i386.o \ eelf_i386_be.o \ @@ -1123,16 +1125,22 @@ eelf32lmip.c: $(srcdir)/emulparams/elf32 $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ${GENSCRIPTS} elf32lmip "$(tdir_elf32lmip)" eelf32lppc.c: $(srcdir)/emulparams/elf32lppc.sh \ - $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfppc.sc ${GEN_DEPENDS} + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ${GENSCRIPTS} elf32lppc "$(tdir_elf32lppc)" +eelf32lppcsim.c: $(srcdir)/emulparams/elf32lppcsim.sh \ + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} elf32lppcsim "$(tdir_elf32lppcsim)" eelf32lsmip.c: $(srcdir)/emulparams/elf32lsmip.sh \ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ${GENSCRIPTS} elf32lsmip "$(tdir_elf32lsmip)" eelf32ppc.c: $(srcdir)/emulparams/elf32ppc.sh \ - $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfppc.sc ${GEN_DEPENDS} + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ${GENSCRIPTS} elf32ppc "$(tdir_elf32ppc)" +eelf32ppcsim.c: $(srcdir)/emulparams/elf32ppcsim.sh \ + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} elf32ppcsim "$(tdir_elf32ppcsim)" eelf32ppclinux.c: $(srcdir)/emulparams/elf32ppclinux.sh \ - $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfppc.sc ${GEN_DEPENDS} + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} ${GENSCRIPTS} elf32ppclinux "$(tdir_elf32ppclinux)" eelf32i370.c: $(srcdir)/emulparams/elf32i370.sh \ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elfi370.sc ${GEN_DEPENDS} diff -upr --new-file binutils-2.9.5.0.35/ld/configure.tgt binutils-2.9.5.0.37/ld/configure.tgt --- binutils-2.9.5.0.35/ld/configure.tgt Fri Mar 31 09:28:46 2000 +++ binutils-2.9.5.0.37/ld/configure.tgt Sun Apr 16 10:13:42 2000 @@ -253,16 +253,17 @@ alpha*-*-netbsd*) targ_emul=elf64alpha ; z8k-*-coff) targ_emul=z8002; targ_extra_emuls=z8001 ;; ns32k-pc532-mach* | ns32k-pc532-ux*) targ_emul=pc532macha ;; ns32k-pc532-netbsd* | ns32k-pc532-lites*) targ_emul=ns32knbsd ;; -powerpc-*-linux-gnu*) targ_emul=elf32ppclinux; targ_extra_emuls=elf32ppc; +powerpc-*-linux-gnu*) targ_emul=elf32ppclinux; + targ_extra_emuls="elf32ppc elf32ppcsim"; targ_extra_libpath=elf32ppc ;; pjl*-*-*) targ_emul=pjlelf ; targ_extra_emuls="elf_i386" ;; pj*-*-*) targ_emul=pjelf ;; powerpc-*-elf* | powerpc-*-eabi* | powerpc-*-sysv* \ | powerpc-*-netbsd* | powerpc-*-vxworks*) - targ_emul=elf32ppc ;; + targ_emul=elf32ppc targ_extra_emuls="elf32ppclinux elf32ppcsim";; powerpcle-*-elf* | powerpcle-*-eabi* | powerpcle-*-solaris* \ | powerpcle-*-sysv* | powerpcle-*-vxworks*) - targ_emul=elf32lppc ;; + targ_emul=elf32lppc targ_extra_emuls="elf32ppcsim";; powerpcle-*-rtems*) targ_emul=elf32leppc ;; powerpc-*-rtems*) targ_emul=elf32ppc ;; powerpc-*-macos*) targ_emul=ppcmacos ;; diff -upr --new-file binutils-2.9.5.0.35/ld/emulparams/elf32lppc.sh binutils-2.9.5.0.37/ld/emulparams/elf32lppc.sh --- binutils-2.9.5.0.35/ld/emulparams/elf32lppc.sh Thu Jun 3 11:02:10 1999 +++ binutils-2.9.5.0.37/ld/emulparams/elf32lppc.sh Sun Apr 16 10:09:10 2000 @@ -1,8 +1,20 @@ TEMPLATE_NAME=elf32 +# If you change this, please also look at: +# elf32ppc.sh elf32ppcsim.sh elf32lppc.sh elf32lppcsim.sh elf32ppclinux.sh GENERATE_SHLIB_SCRIPT=yes -SCRIPT_NAME=elfppc +SCRIPT_NAME=elf OUTPUT_FORMAT="elf32-powerpcle" -TEXT_START_ADDR=0x40000 -MAXPAGESIZE=0x40000 +TEXT_START_ADDR=0x01800000 +MAXPAGESIZE=0x10000 ARCH=powerpc MACHINE= +BSS_PLT= +EXECUTABLE_SYMBOLS='PROVIDE (__stack = 0); PROVIDE (___stack = 0);' +OTHER_BSS_END_SYMBOLS='__end = .;' +OTHER_READONLY_SECTIONS=' + .fixup : { *(.fixup) } +' +OTHER_READWRITE_SECTIONS=' + .got1 : { *(.got1) } + .got2 : { *(.got2) } +' diff -upr --new-file binutils-2.9.5.0.35/ld/emulparams/elf32lppcsim.sh binutils-2.9.5.0.37/ld/emulparams/elf32lppcsim.sh --- binutils-2.9.5.0.35/ld/emulparams/elf32lppcsim.sh Wed Dec 31 16:00:00 1969 +++ binutils-2.9.5.0.37/ld/emulparams/elf32lppcsim.sh Sun Apr 16 10:09:12 2000 @@ -0,0 +1,20 @@ +TEMPLATE_NAME=elf32 +# If you change this, please also look at: +# elf32ppc.sh elf32ppcsim.sh elf32lppc.sh elf32lppcsim.sh elf32ppclinux.sh +GENERATE_SHLIB_SCRIPT=yes +SCRIPT_NAME=elf +OUTPUT_FORMAT="elf32-powerpcle" +TEXT_START_ADDR=0x10000000 +MAXPAGESIZE=0x10000 +ARCH=powerpc +MACHINE= +BSS_PLT= +EXECUTABLE_SYMBOLS='PROVIDE (__stack = 0); PROVIDE (___stack = 0);' +OTHER_BSS_END_SYMBOLS='__end = .;' +OTHER_READONLY_SECTIONS=' + .fixup : { *(.fixup) } +' +OTHER_READWRITE_SECTIONS=' + .got1 : { *(.got1) } + .got2 : { *(.got2) } +' diff -upr --new-file binutils-2.9.5.0.35/ld/emulparams/elf32ppc.sh binutils-2.9.5.0.37/ld/emulparams/elf32ppc.sh --- binutils-2.9.5.0.35/ld/emulparams/elf32ppc.sh Thu Aug 5 17:14:56 1999 +++ binutils-2.9.5.0.37/ld/emulparams/elf32ppc.sh Sun Apr 16 10:09:10 2000 @@ -1,8 +1,20 @@ TEMPLATE_NAME=elf32 +# If you change this, please also look at: +# elf32ppc.sh elf32ppcsim.sh elf32lppc.sh elf32lppcsim.sh elf32ppclinux.sh GENERATE_SHLIB_SCRIPT=yes -SCRIPT_NAME=elfppc +SCRIPT_NAME=elf OUTPUT_FORMAT="elf32-powerpc" TEXT_START_ADDR=0x01800000 MAXPAGESIZE=0x10000 ARCH=powerpc MACHINE= +BSS_PLT= +EXECUTABLE_SYMBOLS='PROVIDE (__stack = 0); PROVIDE (___stack = 0);' +OTHER_BSS_END_SYMBOLS='__end = .;' +OTHER_READONLY_SECTIONS=' + .fixup : { *(.fixup) } +' +OTHER_READWRITE_SECTIONS=' + .got1 : { *(.got1) } + .got2 : { *(.got2) } +' diff -upr --new-file binutils-2.9.5.0.35/ld/emulparams/elf32ppclinux.sh binutils-2.9.5.0.37/ld/emulparams/elf32ppclinux.sh --- binutils-2.9.5.0.35/ld/emulparams/elf32ppclinux.sh Thu Aug 5 17:14:58 1999 +++ binutils-2.9.5.0.37/ld/emulparams/elf32ppclinux.sh Sun Apr 16 10:09:10 2000 @@ -1,8 +1,18 @@ TEMPLATE_NAME=elf32 +# If you change this, please also look at: +# elf32ppc.sh elf32ppcsim.sh elf32lppc.sh elf32lppcsim.sh elf32ppclinux.sh GENERATE_SHLIB_SCRIPT=yes -SCRIPT_NAME=elfppc +SCRIPT_NAME=elf OUTPUT_FORMAT="elf32-powerpc" TEXT_START_ADDR=0x10000000 MAXPAGESIZE=0x10000 ARCH=powerpc MACHINE= +BSS_PLT= +OTHER_RELOCATING_SECTIONS=' + /DISCARD/ : { *(.fixup) } +' +OTHER_READWRITE_SECTIONS=' + .got1 : { *(.got1) } + .got2 : { *(.got2) } +' diff -upr --new-file binutils-2.9.5.0.35/ld/emulparams/elf32ppcsim.sh binutils-2.9.5.0.37/ld/emulparams/elf32ppcsim.sh --- binutils-2.9.5.0.35/ld/emulparams/elf32ppcsim.sh Wed Dec 31 16:00:00 1969 +++ binutils-2.9.5.0.37/ld/emulparams/elf32ppcsim.sh Sun Apr 16 10:09:12 2000 @@ -0,0 +1,20 @@ +TEMPLATE_NAME=elf32 +# If you change this, please also look at: +# elf32ppc.sh elf32ppcsim.sh elf32lppc.sh elf32lppcsim.sh elf32ppclinux.sh +GENERATE_SHLIB_SCRIPT=yes +SCRIPT_NAME=elf +OUTPUT_FORMAT="elf32-powerpc" +TEXT_START_ADDR=0x10000000 +MAXPAGESIZE=0x10000 +ARCH=powerpc +MACHINE= +BSS_PLT= +EXECUTABLE_SYMBOLS='PROVIDE (__stack = 0); PROVIDE (___stack = 0);' +OTHER_BSS_END_SYMBOLS='__end = .;' +OTHER_READONLY_SECTIONS=' + .fixup : { *(.fixup) } +' +OTHER_READWRITE_SECTIONS=' + .got1 : { *(.got1) } + .got2 : { *(.got2) } +' diff -upr --new-file binutils-2.9.5.0.35/ld/emultempl/armelf.em binutils-2.9.5.0.37/ld/emultempl/armelf.em --- binutils-2.9.5.0.35/ld/emultempl/armelf.em Wed Apr 12 10:07:00 2000 +++ binutils-2.9.5.0.37/ld/emultempl/armelf.em Tue Apr 18 16:42:39 2000 @@ -789,6 +789,7 @@ static lang_output_section_statement_typ struct orphan_save { lang_output_section_statement_type *os; + asection **section; lang_statement_union_type **stmt; }; static struct orphan_save hold_text; @@ -805,7 +806,6 @@ gld${EMULATION_NAME}_place_orphan (file, asection *s; { struct orphan_save *place; - asection *snew, **pps; lang_statement_list_type *old; lang_statement_list_type add; etree_type *address; @@ -813,9 +813,6 @@ gld${EMULATION_NAME}_place_orphan (file, const char *outsecname; lang_output_section_statement_type *os; - if ((s->flags & SEC_ALLOC) == 0) - return false; - /* Look through the script to see where to place this section. */ hold_section = s; hold_use = NULL; @@ -848,6 +845,8 @@ gld${EMULATION_NAME}_place_orphan (file, in the first page. */ if (s->flags & SEC_EXCLUDE) return false; + else if ((s->flags & SEC_ALLOC) == 0) + place = NULL; else if ((s->flags & SEC_LOAD) != 0 && strncmp (secname, ".note", 4) == 0 && hold_interp.os != NULL) @@ -869,7 +868,7 @@ gld${EMULATION_NAME}_place_orphan (file, && hold_text.os != NULL) place = &hold_text; else - return false; + place = NULL; /* Choose a unique name for the section. This will be needed if the same section name appears in the input file with different @@ -895,51 +894,35 @@ gld${EMULATION_NAME}_place_orphan (file, outsecname = newname; } - /* Create the section in the output file, and put it in the right - place. This shuffling is to make the output file look neater. */ - snew = bfd_make_section (output_bfd, outsecname); - if (snew == NULL) - einfo ("%P%F: output format %s cannot represent section called %s\n", - output_bfd->xvec->name, outsecname); - if (place->os->bfd_section != NULL) - { - /* Unlink it first. */ - for (pps = &output_bfd->sections; *pps != snew; pps = &(*pps)->next) - ; - *pps = snew->next; - snew->next = NULL; - /* Now tack it on to the end of the "place->os" section list. */ - for (pps = &place->os->bfd_section; *pps; pps = &(*pps)->next) - ; - *pps = snew; - } - - /* Start building a list of statements for this section. */ - old = stat_ptr; - stat_ptr = &add; - lang_list_init (stat_ptr); - - /* If the name of the section is representable in C, then create - symbols to mark the start and the end of the section. */ - for (ps = outsecname; *ps != '\0'; ps++) - if (! isalnum ((unsigned char) *ps) && *ps != '_') - break; - if (*ps == '\0' && config.build_constructors) + if (place != NULL) { - char *symname; + /* Start building a list of statements for this section. */ + old = stat_ptr; + stat_ptr = &add; + lang_list_init (stat_ptr); + + /* If the name of the section is representable in C, then create + symbols to mark the start and the end of the section. */ + for (ps = outsecname; *ps != '\0'; ps++) + if (! isalnum ((unsigned char) *ps) && *ps != '_') + break; + if (*ps == '\0' && config.build_constructors) + { + char *symname; + etree_type *e_align; - symname = (char *) xmalloc (ps - outsecname + sizeof "__start_"); - sprintf (symname, "__start_%s", outsecname); - lang_add_assignment (exp_assop ('=', symname, - exp_unop (ALIGN_K, - exp_intop ((bfd_vma) 1 - << s->alignment_power)))); + symname = (char *) xmalloc (ps - outsecname + sizeof "__start_"); + sprintf (symname, "__start_%s", outsecname); + e_align = exp_unop (ALIGN_K, + exp_intop ((bfd_vma) 1 << s->alignment_power)); + lang_add_assignment (exp_assop ('=', symname, e_align)); + } } - if (! link_info.relocateable) - address = NULL; - else + if (link_info.relocateable || (s->flags & (SEC_LOAD | SEC_ALLOC)) == 0) address = exp_intop ((bfd_vma) 0); + else + address = NULL; lang_enter_output_section_statement (outsecname, address, 0, (bfd_vma) 0, @@ -951,35 +934,72 @@ gld${EMULATION_NAME}_place_orphan (file, wild_doit (&os->children, s, os, file); lang_leave_output_section_statement - ((bfd_vma) 0, "*default*", (struct lang_output_section_phdr_list *) NULL, - "*default*"); - stat_ptr = &add; + ((bfd_vma) 0, "*default*", + (struct lang_output_section_phdr_list *) NULL, "*default*"); - if (*ps == '\0' && config.build_constructors) + if (place != NULL) { - char *symname; + asection *snew, **pps; - symname = (char *) xmalloc (ps - outsecname + sizeof "__stop_"); - sprintf (symname, "__stop_%s", outsecname); - lang_add_assignment (exp_assop ('=', symname, - exp_nameop (NAME, "."))); - } + stat_ptr = &add; - if (! place->stmt) - { - /* Put the new statement list right at the head. */ - *add.tail = place->os->header.next; - place->os->header.next = add.head; - } - else - { - /* Put it after the last orphan statement we added. */ - *add.tail = *place->stmt; - *place->stmt = add.head; - } - place->stmt = add.tail; /* Save the end of this list. */ + if (*ps == '\0' && config.build_constructors) + { + char *symname; + + symname = (char *) xmalloc (ps - outsecname + sizeof "__stop_"); + sprintf (symname, "__stop_%s", outsecname); + lang_add_assignment (exp_assop ('=', symname, + exp_nameop (NAME, "."))); + } + stat_ptr = old; + + snew = os->bfd_section; + if (place->os->bfd_section != NULL || place->section != NULL) + { + /* Shuffle the section to make the output file look neater. */ + if (place->section == NULL) + { +#if 0 + /* Finding the end of the list is a little tricky. We + make a wild stab at it by comparing section flags. */ + flagword first_flags = place->os->bfd_section->flags; + for (pps = &place->os->bfd_section->next; + *pps != NULL && (*pps)->flags == first_flags; + pps = &(*pps)->next) + ; + place->section = pps; +#else + /* Put orphans after the first section on the list. */ + place->section = &place->os->bfd_section->next; +#endif + } + + /* Unlink the section. */ + for (pps = &output_bfd->sections; *pps != snew; pps = &(*pps)->next) + ; + *pps = snew->next; + + /* Now tack it on to the "place->os" section list. */ + snew->next = *place->section; + *place->section = snew; + } + place->section = &snew->next; /* Save the end of this list. */ - stat_ptr = old; + if (place->stmt == NULL) + { + /* Put the new statement list right at the head. */ + *add.tail = place->os->header.next; + place->os->header.next = add.head; + } + else + { + /* Put it after the last orphan statement we added. */ + *add.tail = *place->stmt; + *place->stmt = add.head; + } + place->stmt = add.tail; /* Save the end of this list. */ + } return true; } diff -upr --new-file binutils-2.9.5.0.35/ld/emultempl/elf32.em binutils-2.9.5.0.37/ld/emultempl/elf32.em --- binutils-2.9.5.0.35/ld/emultempl/elf32.em Wed Apr 12 10:27:35 2000 +++ binutils-2.9.5.0.37/ld/emultempl/elf32.em Tue Apr 18 16:42:39 2000 @@ -871,6 +871,7 @@ static lang_output_section_statement_typ struct orphan_save { lang_output_section_statement_type *os; + asection **section; lang_statement_union_type **stmt; }; static struct orphan_save hold_text; @@ -887,7 +888,6 @@ gld${EMULATION_NAME}_place_orphan (file, asection *s; { struct orphan_save *place; - asection *snew, **pps; lang_statement_list_type *old; lang_statement_list_type add; etree_type *address; @@ -895,9 +895,6 @@ gld${EMULATION_NAME}_place_orphan (file, const char *outsecname; lang_output_section_statement_type *os; - if ((s->flags & SEC_ALLOC) == 0) - return false; - /* Look through the script to see where to place this section. */ hold_section = s; hold_use = NULL; @@ -930,6 +927,8 @@ gld${EMULATION_NAME}_place_orphan (file, in the first page. */ if (s->flags & SEC_EXCLUDE) return false; + else if ((s->flags & SEC_ALLOC) == 0) + place = NULL; else if ((s->flags & SEC_LOAD) != 0 && strncmp (secname, ".note", 4) == 0 && hold_interp.os != NULL) @@ -951,7 +950,7 @@ gld${EMULATION_NAME}_place_orphan (file, && hold_text.os != NULL) place = &hold_text; else - return false; + place = NULL; /* Choose a unique name for the section. This will be needed if the same section name appears in the input file with different @@ -977,51 +976,35 @@ gld${EMULATION_NAME}_place_orphan (file, outsecname = newname; } - /* Create the section in the output file, and put it in the right - place. This shuffling is to make the output file look neater. */ - snew = bfd_make_section (output_bfd, outsecname); - if (snew == NULL) - einfo ("%P%F: output format %s cannot represent section called %s\n", - output_bfd->xvec->name, outsecname); - if (place->os->bfd_section != NULL) - { - /* Unlink it first. */ - for (pps = &output_bfd->sections; *pps != snew; pps = &(*pps)->next) - ; - *pps = snew->next; - snew->next = NULL; - /* Now tack it on to the end of the "place->os" section list. */ - for (pps = &place->os->bfd_section; *pps; pps = &(*pps)->next) - ; - *pps = snew; - } - - /* Start building a list of statements for this section. */ - old = stat_ptr; - stat_ptr = &add; - lang_list_init (stat_ptr); - - /* If the name of the section is representable in C, then create - symbols to mark the start and the end of the section. */ - for (ps = outsecname; *ps != '\0'; ps++) - if (! isalnum ((unsigned char) *ps) && *ps != '_') - break; - if (*ps == '\0' && config.build_constructors) + if (place != NULL) { - char *symname; + /* Start building a list of statements for this section. */ + old = stat_ptr; + stat_ptr = &add; + lang_list_init (stat_ptr); + + /* If the name of the section is representable in C, then create + symbols to mark the start and the end of the section. */ + for (ps = outsecname; *ps != '\0'; ps++) + if (! isalnum ((unsigned char) *ps) && *ps != '_') + break; + if (*ps == '\0' && config.build_constructors) + { + char *symname; + etree_type *e_align; - symname = (char *) xmalloc (ps - outsecname + sizeof "__start_"); - sprintf (symname, "__start_%s", outsecname); - lang_add_assignment (exp_assop ('=', symname, - exp_unop (ALIGN_K, - exp_intop ((bfd_vma) 1 - << s->alignment_power)))); + symname = (char *) xmalloc (ps - outsecname + sizeof "__start_"); + sprintf (symname, "__start_%s", outsecname); + e_align = exp_unop (ALIGN_K, + exp_intop ((bfd_vma) 1 << s->alignment_power)); + lang_add_assignment (exp_assop ('=', symname, e_align)); + } } - if (! link_info.relocateable) - address = NULL; - else + if (link_info.relocateable || (s->flags & (SEC_LOAD | SEC_ALLOC)) == 0) address = exp_intop ((bfd_vma) 0); + else + address = NULL; lang_enter_output_section_statement (outsecname, address, 0, (bfd_vma) 0, @@ -1033,35 +1016,72 @@ gld${EMULATION_NAME}_place_orphan (file, wild_doit (&os->children, s, os, file); lang_leave_output_section_statement - ((bfd_vma) 0, "*default*", (struct lang_output_section_phdr_list *) NULL, - "*default*"); - stat_ptr = &add; + ((bfd_vma) 0, "*default*", + (struct lang_output_section_phdr_list *) NULL, "*default*"); - if (*ps == '\0' && config.build_constructors) + if (place != NULL) { - char *symname; + asection *snew, **pps; - symname = (char *) xmalloc (ps - outsecname + sizeof "__stop_"); - sprintf (symname, "__stop_%s", outsecname); - lang_add_assignment (exp_assop ('=', symname, - exp_nameop (NAME, "."))); - } + stat_ptr = &add; - if (! place->stmt) - { - /* Put the new statement list right at the head. */ - *add.tail = place->os->header.next; - place->os->header.next = add.head; - } - else - { - /* Put it after the last orphan statement we added. */ - *add.tail = *place->stmt; - *place->stmt = add.head; - } - place->stmt = add.tail; /* Save the end of this list. */ + if (*ps == '\0' && config.build_constructors) + { + char *symname; + + symname = (char *) xmalloc (ps - outsecname + sizeof "__stop_"); + sprintf (symname, "__stop_%s", outsecname); + lang_add_assignment (exp_assop ('=', symname, + exp_nameop (NAME, "."))); + } + stat_ptr = old; + + snew = os->bfd_section; + if (place->os->bfd_section != NULL || place->section != NULL) + { + /* Shuffle the section to make the output file look neater. */ + if (place->section == NULL) + { +#if 0 + /* Finding the end of the list is a little tricky. We + make a wild stab at it by comparing section flags. */ + flagword first_flags = place->os->bfd_section->flags; + for (pps = &place->os->bfd_section->next; + *pps != NULL && (*pps)->flags == first_flags; + pps = &(*pps)->next) + ; + place->section = pps; +#else + /* Put orphans after the first section on the list. */ + place->section = &place->os->bfd_section->next; +#endif + } + + /* Unlink the section. */ + for (pps = &output_bfd->sections; *pps != snew; pps = &(*pps)->next) + ; + *pps = snew->next; + + /* Now tack it on to the "place->os" section list. */ + snew->next = *place->section; + *place->section = snew; + } + place->section = &snew->next; /* Save the end of this list. */ - stat_ptr = old; + if (place->stmt == NULL) + { + /* Put the new statement list right at the head. */ + *add.tail = place->os->header.next; + place->os->header.next = add.head; + } + else + { + /* Put it after the last orphan statement we added. */ + *add.tail = *place->stmt; + *place->stmt = add.head; + } + place->stmt = add.tail; /* Save the end of this list. */ + } return true; } diff -upr --new-file binutils-2.9.5.0.35/ld/emultempl/pe.em binutils-2.9.5.0.37/ld/emultempl/pe.em --- binutils-2.9.5.0.35/ld/emultempl/pe.em Wed Apr 12 10:07:00 2000 +++ binutils-2.9.5.0.37/ld/emultempl/pe.em Tue Apr 18 10:06:33 2000 @@ -1081,6 +1081,7 @@ static lang_output_section_statement_typ struct orphan_save { lang_output_section_statement_type *os; + asection **section; lang_statement_union_type **stmt; }; static struct orphan_save hold_text; @@ -1099,9 +1100,7 @@ gld_${EMULATION_NAME}_place_orphan (file { const char *secname; char *dollar = NULL; - - if ((s->flags & SEC_ALLOC) == 0) - return false; + lang_statement_list_type add_child; secname = bfd_get_section_name (s->owner, s); @@ -1120,11 +1119,16 @@ gld_${EMULATION_NAME}_place_orphan (file hold_use = NULL; lang_for_each_statement (gld${EMULATION_NAME}_place_section); - if (hold_use == NULL) + lang_list_init (&add_child); + + if (hold_use != NULL) + { + wild_doit (&add_child, s, hold_use, file); + } + else { struct orphan_save *place; char *outsecname; - asection *snew, **pps; lang_statement_list_type *old; lang_statement_list_type add; etree_type *address; @@ -1132,8 +1136,10 @@ gld_${EMULATION_NAME}_place_orphan (file /* Try to put the new output section in a reasonable place based on the section name and section flags. */ place = NULL; - if ((s->flags & SEC_HAS_CONTENTS) == 0 - && hold_bss.os != NULL) + if ((s->flags & SEC_ALLOC) == 0) + ; + else if ((s->flags & SEC_HAS_CONTENTS) == 0 + && hold_bss.os != NULL) place = &hold_bss; else if ((s->flags & SEC_READONLY) == 0 && hold_data.os != NULL) @@ -1171,36 +1177,13 @@ gld_${EMULATION_NAME}_place_orphan (file outsecname = newname; } - /* We don't want to free OUTSECNAME, as it may get attached to - the output section statement. */ - - /* Create the section in the output file, and put it in the - right place. This shuffling is to make the output file look - neater. */ - snew = bfd_make_section (output_bfd, outsecname); - if (snew == NULL) - einfo ("%P%F: output format %s cannot represent section called %s\n", - output_bfd->xvec->name, outsecname); - if (place != NULL && place->os->bfd_section != NULL) - { - /* Unlink it first. */ - for (pps = &output_bfd->sections; *pps != snew; pps = &(*pps)->next) - ; - *pps = snew->next; - snew->next = NULL; - /* Now tack it on to the end of the "place->os" section list. */ - for (pps = &place->os->bfd_section; *pps; pps = &(*pps)->next) - ; - *pps = snew; - } - /* Start building a list of statements for this section. */ old = stat_ptr; stat_ptr = &add; lang_list_init (stat_ptr); - if (link_info.relocateable) - address = NULL; + if (link_info.relocateable || (s->flags & (SEC_LOAD | SEC_ALLOC)) == 0) + address = exp_intop ((bfd_vma) 0); else { /* All sections in an executable must be aligned to a page @@ -1216,15 +1199,52 @@ gld_${EMULATION_NAME}_place_orphan (file (etree_type *) NULL); hold_use = lang_output_section_statement_lookup (outsecname); + wild_doit (&add_child, s, hold_use, file); lang_leave_output_section_statement ((bfd_vma) 0, "*default*", (struct lang_output_section_phdr_list *) NULL, "*default*"); + stat_ptr = old; + if (place != NULL) { - if (! place->stmt) + asection *snew, **pps; + + snew = hold_use->bfd_section; + if (place->os->bfd_section != NULL || place->section != NULL) + { + /* Shuffle the section to make the output file look neater. */ + if (place->section == NULL) + { +#if 0 + /* Finding the end of the list is a little tricky. We + make a wild stab at it by comparing section flags. */ + flagword first_flags = place->os->bfd_section->flags; + for (pps = &place->os->bfd_section->next; + *pps != NULL && (*pps)->flags == first_flags; + pps = &(*pps)->next) + ; + place->section = pps; +#else + /* Put orphans after the first section on the list. */ + place->section = &place->os->bfd_section->next; +#endif + } + + /* Unlink the section. */ + for (pps = &output_bfd->sections; *pps != snew; pps = &(*pps)->next) + ; + *pps = snew->next; + + /* Now tack it on to the "place->os" section list. */ + snew->next = *place->section; + *place->section = snew; + } + place->section = &snew->next; /* Save the end of this list. */ + + if (place->stmt == NULL) { /* Put the new statement list right at the head. */ *add.tail = place->os->header.next; @@ -1238,55 +1258,50 @@ gld_${EMULATION_NAME}_place_orphan (file } place->stmt = add.tail; /* Save the end of this list. */ } - - stat_ptr = old; } - if (dollar == NULL) - wild_doit (&hold_use->children, s, hold_use, file); - else - { - lang_statement_union_type **pl; - boolean found_dollar; - lang_statement_list_type list; - - /* The section name has a '$'. Sort it with the other '$' - sections. */ - - found_dollar = false; - for (pl = &hold_use->children.head; *pl != NULL; pl = &(*pl)->next) - { - lang_input_section_type *ls; - const char *lname; + { + lang_statement_union_type **pl = &hold_use->children.head; - if ((*pl)->header.type != lang_input_section_enum) - continue; - - ls = &(*pl)->input_section; - - lname = bfd_get_section_name (ls->ifile->the_bfd, ls->section); - if (strchr (lname, '$') == NULL) - { - if (found_dollar) - break; - } - else - { - found_dollar = true; - if (strcmp (secname, lname) < 0) - break; - } - } - - lang_list_init (&list); - wild_doit (&list, s, hold_use, file); - if (list.head != NULL) - { - ASSERT (list.head->next == NULL); - list.head->next = *pl; - *pl = list.head; - } - } + if (dollar != NULL) + { + boolean found_dollar; + + /* The section name has a '$'. Sort it with the other '$' + sections. */ + + found_dollar = false; + for ( ; *pl != NULL; pl = &(*pl)->next) + { + lang_input_section_type *ls; + const char *lname; + + if ((*pl)->header.type != lang_input_section_enum) + continue; + + ls = &(*pl)->input_section; + + lname = bfd_get_section_name (ls->ifile->the_bfd, ls->section); + if (strchr (lname, '$') == NULL) + { + if (found_dollar) + break; + } + else + { + found_dollar = true; + if (strcmp (secname, lname) < 0) + break; + } + } + } + + if (add_child.head != NULL) + { + add_child.head->next = *pl; + *pl = add_child.head; + } + } free (hold_section_name); diff -upr --new-file binutils-2.9.5.0.35/ld/lexsup.c binutils-2.9.5.0.37/ld/lexsup.c --- binutils-2.9.5.0.35/ld/lexsup.c Tue Apr 4 10:17:34 2000 +++ binutils-2.9.5.0.37/ld/lexsup.c Thu Apr 13 08:01:38 2000 @@ -338,7 +338,7 @@ static const struct ld_option ld_options '\0', N_("COUNT"), N_("Split output sections every COUNT relocs"), TWO_DASHES }, { {"stats", no_argument, NULL, OPTION_STATS}, '\0', NULL, N_("Print memory usage statistics"), TWO_DASHES }, - { {"style", no_argument, NULL, OPTION_STYLE}, + { {"style", required_argument, NULL, OPTION_STYLE}, '\0', "{gnu,lucid,arm,hp,edg,gnat,compaq}", N_("Set demangling style"), TWO_DASHES }, { {"task-link", required_argument, NULL, OPTION_TASK_LINK}, '\0', N_("SYMBOL"), N_("Do task level linking"), TWO_DASHES }, diff -upr --new-file binutils-2.9.5.0.35/ld/scripttempl/elf.sc binutils-2.9.5.0.37/ld/scripttempl/elf.sc --- binutils-2.9.5.0.35/ld/scripttempl/elf.sc Sat Feb 19 11:22:44 2000 +++ binutils-2.9.5.0.37/ld/scripttempl/elf.sc Sun Apr 16 10:09:15 2000 @@ -21,6 +21,7 @@ # OTHER_BSS_SYMBOLS - symbols that appear at the start of the # .bss section besides __bss_start. # DATA_PLT - .plt should be in data segment, not text segment. +# BSS_PLT - .plt should be in bss segment # TEXT_DYNAMIC - .dynamic in text segment, not data segment. # EMBEDDED - whether this is for an embedded system. # SHLIB_TEXT_START_ADDR - if set, add to SIZEOF_HEADERS to set @@ -47,6 +48,8 @@ INTERP=".interp ${RELOCATING-0} : { *( PLT=".plt ${RELOCATING-0} : { *(.plt) }" DYNAMIC=".dynamic ${RELOCATING-0} : { *(.dynamic) }" RODATA=".rodata ${RELOCATING-0} : { *(.rodata) ${RELOCATING+*(.rodata.*)} ${RELOCATING+*(.gnu.linkonce.r*)} }" +SBSS2=".sbss2 ${RELOCATING-0} : { *(.sbss2) }" +SDATA2=".sdata2 ${RELOCATING-0} : { *(.sdata2) }" CTOR=".ctors ${CONSTRUCTING-0} : { ${CONSTRUCTING+${CTOR_START}} @@ -183,6 +186,10 @@ SECTIONS } .rel.sbss ${RELOCATING-0} : { *(.rel.sbss) } .rela.sbss ${RELOCATING-0} : { *(.rela.sbss) } + .rel.sdata2 ${RELOCATING-0} : { *(.rel.sdata2) } + .rela.sdata2 ${RELOCATING-0} : { *(.rela.sdata2) } + .rel.sbss2 ${RELOCATING-0} : { *(.rel.sbss2) } + .rela.sbss2 ${RELOCATING-0} : { *(.rela.sbss2) } .rel.bss ${RELOCATING-0} : { *(.rel.bss) } .rela.bss ${RELOCATING-0} : { *(.rela.bss) } .rel.plt ${RELOCATING-0} : { *(.rel.plt) } @@ -196,7 +203,7 @@ SECTIONS ${INIT_END} } =${NOP-0} - ${DATA_PLT-${PLT}} + ${DATA_PLT-${BSS_PLT-${PLT}}} .text ${RELOCATING-0} : { ${RELOCATING+${TEXT_START_SYMBOLS}} @@ -208,16 +215,19 @@ SECTIONS ${RELOCATING+*(.gnu.linkonce.t*)} ${RELOCATING+${OTHER_TEXT_SECTIONS}} } =${NOP-0} - ${RELOCATING+_etext = .;} - ${RELOCATING+PROVIDE (etext = .);} .fini ${RELOCATING-0} : { ${FINI_START} KEEP (*(.fini)) ${FINI_END} } =${NOP-0} + ${RELOCATING+PROVIDE (__etext = .);} + ${RELOCATING+PROVIDE (_etext = .);} + ${RELOCATING+PROVIDE (etext = .);} ${WRITABLE_RODATA-${RODATA}} .rodata1 ${RELOCATING-0} : { *(.rodata1) } + ${CREATE_SHLIB-${SDATA2}} + ${CREATE_SHLIB-${SBSS2}} ${RELOCATING+${OTHER_READONLY_SECTIONS}} /* Adjust the address for the data segment. We want to adjust up to @@ -242,7 +252,9 @@ SECTIONS ${RELOCATING+${DTOR}} ${DATA_PLT+${PLT}} ${RELOCATING+${OTHER_GOT_SYMBOLS}} - .got ${RELOCATING-0} : { *(.got.plt) *(.got) } + .got ${RELOCATING-0} : { *(.got.plt) *(.got) } + ${CREATE_SHLIB+${SDATA2}} + ${CREATE_SHLIB+${SBSS2}} ${TEXT_DYNAMIC-${DYNAMIC}} /* We want the small data sections together, so single-instruction offsets can access them all, and initialized data all before uninitialized, so @@ -261,11 +273,16 @@ SECTIONS ${RELOCATING+${OTHER_BSS_SYMBOLS}} .sbss ${RELOCATING-0} : { + ${RELOCATING+PROVIDE (__sbss_start = .);} + ${RELOCATING+PROVIDE (___sbss_start = .);} *(.dynsbss) *(.sbss) ${RELOCATING+*(.sbss.*)} *(.scommon) + ${RELOCATING+PROVIDE (__sbss_end = .);} + ${RELOCATING+PROVIDE (___sbss_end = .);} } + ${BSS_PLT+${PLT}} .bss ${RELOCATING-0} : { *(.dynbss) diff -upr --new-file binutils-2.9.5.0.35/ld/scripttempl/elfppc.sc binutils-2.9.5.0.37/ld/scripttempl/elfppc.sc --- binutils-2.9.5.0.35/ld/scripttempl/elfppc.sc Wed Apr 12 10:26:38 2000 +++ binutils-2.9.5.0.37/ld/scripttempl/elfppc.sc Wed Dec 31 16:00:00 1969 @@ -1,292 +0,0 @@ -# -# Unusual variables checked by this code: -# NOP - two byte opcode for no-op (defaults to 0) -# DATA_ADDR - if end-of-text-plus-one-page isn't right for data start -# OTHER_READONLY_SECTIONS - other than .text .init .rodata ... -# (e.g., .PARISC.milli) -# OTHER_READWRITE_SECTIONS - other than .data .bss .ctors .sdata ... -# (e.g., .PARISC.global) -# OTHER_SECTIONS - at the end -# EXECUTABLE_SYMBOLS - symbols that must be defined for an -# executable (e.g., _DYNAMIC_LINK) -# TEXT_START_SYMBOLS - symbols that appear at the start of the -# .text section. -# DATA_START_SYMBOLS - symbols that appear at the start of the -# .data section. -# OTHER_BSS_SYMBOLS - symbols that appear at the start of the -# .bss section besides __bss_start. -# -# When adding sections, do note that the names of some sections are used -# when specifying the start address of the next. -# -test -z "$ENTRY" && ENTRY=_start -test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT} -test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT} -test "$LD_FLAG" = "N" && DATA_ADDR=. -SBSS2=".sbss2 ${RELOCATING-0} : { *(.sbss2) }" -SDATA2=".sdata2 ${RELOCATING-0} : { *(.sdata2) }" -INTERP=".interp ${RELOCATING-0} : { *(.interp) }" -PLT=".plt ${RELOCATING-0} : { *(.plt) }" -CTOR=".ctors ${CONSTRUCTING-0} : - { - ${CONSTRUCTING+${CTOR_START}} - /* gcc uses crtbegin.o to find the start of - the constructors, so we make sure it is - first. Because this is a wildcard, it - doesn't matter if the user does not - actually link against crtbegin.o; the - linker won't look for a file to match a - wildcard. The wildcard also means that it - doesn't matter which directory crtbegin.o - is in. */ - - KEEP (*crtbegin.o(.ctors)) - - /* We don't want to include the .ctor section from - from the crtend.o file until after the sorted ctors. - The .ctor section from the crtend file contains the - end of ctors marker and it must be last */ - - KEEP (*(EXCLUDE_FILE (*crtend.o) .ctors)) - KEEP (*(SORT(.ctors.*))) - KEEP (*(.ctors)) - ${CONSTRUCTING+${CTOR_END}} - }" - -DTOR=" .dtors ${CONSTRUCTING-0} : - { - ${CONSTRUCTING+${DTOR_START}} - KEEP (*crtbegin.o(.dtors)) - KEEP (*(EXCLUDE_FILE (*crtend.o) .dtors)) - KEEP (*(SORT(.dtors.*))) - KEEP (*(.dtors)) - ${CONSTRUCTING+${DTOR_END}} - }" - -cat < + + * sysdep.h: Include "ansidecl.h" not + * Makefile.am: Update dependencies. + * Makefile.in: Regenerate. + +2000-04-14 Michael Sokolov + + * a29k-dis.c, alpha-dis.c, alpha-opc.c, arc-dis.c, arc-opc.c, + avr-dis.c, d10v-dis.c, d10v-opc.c, d30v-dis.c, d30v-opc.c, + disassemble.c, h8300-dis.c, h8500-dis.c, hppa-dis.c, i370-dis.c, + i370-opc.c, i960-dis.c, m10200-dis.c, m10200-opc.c, m10300-dis.c, + m10300-opc.c, m68k-dis.c, m68k-opc.c, m88k-dis.c, mcore-dis.c, + mips-dis.c, mips-opc.c, mips16-opc.c, pj-dis.c, pj-opc.c, + ppc-dis.c, ppc-opc.c, sh-dis.c, sparc-dis.c, sparc-opc.c, + tic80-dis.c, tic80-opc.c, v850-dis.c, v850-opc.c, vax-dis.c, + w65-dis.c, z8k-dis.c, z8kgen.c: Include sysdep.h. Remove + ansidecl.h as sysdep.h includes it. + Fri Apr 7 15:56:57 2000 Andrew Cagney * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add diff -upr --new-file binutils-2.9.5.0.35/opcodes/Makefile.am binutils-2.9.5.0.37/opcodes/Makefile.am --- binutils-2.9.5.0.35/opcodes/Makefile.am Wed Apr 12 10:27:35 2000 +++ binutils-2.9.5.0.37/opcodes/Makefile.am Sun Apr 16 10:13:54 2000 @@ -245,139 +245,157 @@ dep-am: DEP # DO NOT DELETE THIS LINE -- mkdep uses it. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. -a29k-dis.lo: a29k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ - $(INCDIR)/ansidecl.h $(INCDIR)/opcode/a29k.h -alpha-dis.lo: alpha-dis.c $(INCDIR)/ansidecl.h sysdep.h \ - config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h -alpha-opc.lo: alpha-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/alpha.h \ - $(BFD_H) opintl.h -arc-dis.lo: arc-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ - $(INCDIR)/ansidecl.h $(INCDIR)/opcode/arc.h $(BFDDIR)/elf-bfd.h \ +a29k-dis.lo: a29k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/a29k.h +alpha-dis.lo: alpha-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h +alpha-opc.lo: alpha-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/alpha.h $(BFD_H) opintl.h +arc-dis.lo: arc-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/arc.h \ + $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \ + $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/arc.h \ + $(INCDIR)/elf/reloc-macros.h opintl.h +arc-opc.lo: arc-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/arc.h opintl.h +arm-dis.lo: arm-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) arm-opc.h $(INCDIR)/coff/internal.h \ + $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h opintl.h $(BFDDIR)/elf-bfd.h \ $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \ - $(INCDIR)/bfdlink.h $(INCDIR)/elf/arc.h $(INCDIR)/elf/reloc-macros.h \ - opintl.h -arc-opc.lo: arc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/arc.h \ + $(INCDIR)/elf/arm.h $(INCDIR)/elf/reloc-macros.h +avr-dis.lo: avr-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) opintl.h +cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/libiberty.h $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h \ opintl.h -arm-dis.lo: arm-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ - $(BFD_H) arm-opc.h $(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h \ - $(INCDIR)/bfdlink.h opintl.h $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h \ - $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/elf/arm.h \ - $(INCDIR)/elf/reloc-macros.h -avr-dis.lo: avr-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ - $(INCDIR)/ansidecl.h opintl.h -cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/libiberty.h \ - $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h \ - opintl.h -cgen-dis.lo: cgen-dis.c sysdep.h config.h $(INCDIR)/libiberty.h \ - $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h -cgen-opc.lo: cgen-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \ - $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h -d10v-dis.lo: d10v-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h \ - $(INCDIR)/dis-asm.h $(BFD_H) -d10v-opc.lo: d10v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h -d30v-dis.lo: d30v-dis.c $(INCDIR)/opcode/d30v.h $(INCDIR)/dis-asm.h \ - $(BFD_H) $(INCDIR)/ansidecl.h opintl.h -d30v-opc.lo: d30v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d30v.h -dis-buf.lo: dis-buf.c sysdep.h config.h $(INCDIR)/dis-asm.h \ - $(BFD_H) opintl.h -disassemble.lo: disassemble.c $(INCDIR)/ansidecl.h \ +cgen-dis.lo: cgen-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/libiberty.h $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h +cgen-opc.lo: cgen-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/libiberty.h $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h +d10v-dis.lo: d10v-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/d10v.h $(INCDIR)/dis-asm.h $(BFD_H) +d10v-opc.lo: d10v-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/d10v.h +d30v-dis.lo: d30v-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/d30v.h $(INCDIR)/dis-asm.h $(BFD_H) \ + opintl.h +d30v-opc.lo: d30v-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/d30v.h +dis-buf.lo: dis-buf.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) opintl.h +disassemble.lo: disassemble.c sysdep.h config.h $(INCDIR)/ansidecl.h \ $(INCDIR)/dis-asm.h $(BFD_H) -fr30-asm.lo: fr30-asm.c sysdep.h config.h $(BFD_H) \ - $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \ - fr30-opc.h opintl.h -fr30-desc.lo: fr30-desc.c sysdep.h config.h $(BFD_H) \ - $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \ - fr30-opc.h opintl.h -fr30-dis.lo: fr30-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ +fr30-asm.lo: fr30-asm.c sysdep.h config.h $(INCDIR)/ansidecl.h \ $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \ fr30-opc.h opintl.h -fr30-ibld.lo: fr30-ibld.c sysdep.h config.h $(INCDIR)/dis-asm.h \ +fr30-desc.lo: fr30-desc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \ fr30-opc.h opintl.h -fr30-opc.lo: fr30-opc.c sysdep.h config.h $(BFD_H) \ - $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \ +fr30-dis.lo: fr30-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h \ + $(INCDIR)/opcode/cgen.h fr30-opc.h opintl.h +fr30-ibld.lo: fr30-ibld.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h \ + $(INCDIR)/opcode/cgen.h fr30-opc.h opintl.h +fr30-opc.lo: fr30-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \ fr30-opc.h -h8300-dis.lo: h8300-dis.c $(INCDIR)/opcode/h8300.h \ - $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/ansidecl.h opintl.h -h8500-dis.lo: h8500-dis.c h8500-opc.h $(INCDIR)/dis-asm.h \ - $(BFD_H) $(INCDIR)/ansidecl.h opintl.h -hppa-dis.lo: hppa-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ - $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h -i370-dis.lo: i370-dis.c $(INCDIR)/ansidecl.h sysdep.h \ - config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/i370.h -i370-opc.lo: i370-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/i370.h +h8300-dis.lo: h8300-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/h8300.h $(INCDIR)/dis-asm.h $(BFD_H) \ + opintl.h +h8500-dis.lo: h8500-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + h8500-opc.h $(INCDIR)/dis-asm.h $(BFD_H) opintl.h +hppa-dis.lo: hppa-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h +i370-dis.lo: i370-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/i370.h +i370-opc.lo: i370-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/i370.h i386-dis.lo: i386-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ $(INCDIR)/ansidecl.h sysdep.h config.h opintl.h -i960-dis.lo: i960-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ - $(INCDIR)/ansidecl.h -m32r-asm.lo: m32r-asm.c sysdep.h config.h $(BFD_H) \ - $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \ - m32r-opc.h opintl.h -m32r-desc.lo: m32r-desc.c sysdep.h config.h $(BFD_H) \ - $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \ - m32r-opc.h opintl.h -m32r-dis.lo: m32r-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ +i960-dis.lo: i960-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) +m32r-asm.lo: m32r-asm.c sysdep.h config.h $(INCDIR)/ansidecl.h \ $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \ m32r-opc.h opintl.h -m32r-ibld.lo: m32r-ibld.c sysdep.h config.h $(INCDIR)/dis-asm.h \ +m32r-desc.lo: m32r-desc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \ m32r-opc.h opintl.h -m32r-opc.lo: m32r-opc.c sysdep.h config.h $(BFD_H) \ - $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \ +m32r-dis.lo: m32r-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h \ + $(INCDIR)/opcode/cgen.h m32r-opc.h opintl.h +m32r-ibld.lo: m32r-ibld.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h \ + $(INCDIR)/opcode/cgen.h m32r-opc.h opintl.h +m32r-opc.lo: m32r-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \ m32r-opc.h -m32r-opinst.lo: m32r-opinst.c sysdep.h config.h $(BFD_H) \ - $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \ +m32r-opinst.lo: m32r-opinst.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \ m32r-opc.h -m68k-dis.lo: m68k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ - $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h opintl.h \ +m68k-dis.lo: m68k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/floatformat.h \ + opintl.h $(INCDIR)/opcode/m68k.h +m68k-opc.lo: m68k-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ $(INCDIR)/opcode/m68k.h -m68k-opc.lo: m68k-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m68k.h -m88k-dis.lo: m88k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ - $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m88k.h opintl.h -mcore-dis.lo: mcore-dis.c mcore-opc.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/dis-asm.h $(BFD_H) -mips-dis.lo: mips-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ - $(BFD_H) $(INCDIR)/opcode/mips.h opintl.h $(BFDDIR)/elf-bfd.h \ - $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \ - $(INCDIR)/bfdlink.h $(INCDIR)/elf/mips.h $(INCDIR)/elf/reloc-macros.h -mips-opc.lo: mips-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h -mips16-opc.lo: mips16-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h -m10200-dis.lo: m10200-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h \ - $(INCDIR)/dis-asm.h $(BFD_H) opintl.h -m10200-opc.lo: m10200-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h -m10300-dis.lo: m10300-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h \ - $(INCDIR)/dis-asm.h $(BFD_H) opintl.h -m10300-opc.lo: m10300-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h +m88k-dis.lo: m88k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/m88k.h \ + opintl.h +mcore-dis.lo: mcore-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + mcore-opc.h $(INCDIR)/dis-asm.h $(BFD_H) +mips-dis.lo: mips-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/mips.h \ + opintl.h $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h \ + $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \ + $(INCDIR)/elf/mips.h $(INCDIR)/elf/reloc-macros.h +mips-opc.lo: mips-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/mips.h +mips16-opc.lo: mips16-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/mips.h +m10200-dis.lo: m10200-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/mn10200.h $(INCDIR)/dis-asm.h $(BFD_H) \ + opintl.h +m10200-opc.lo: m10200-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/mn10200.h +m10300-dis.lo: m10300-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/mn10300.h $(INCDIR)/dis-asm.h $(BFD_H) \ + opintl.h +m10300-opc.lo: m10300-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/mn10300.h ns32k-dis.lo: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \ sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h \ opintl.h -pj-dis.lo: pj-dis.c $(INCDIR)/opcode/pj.h $(INCDIR)/dis-asm.h \ - $(BFD_H) $(INCDIR)/ansidecl.h -pj-opc.lo: pj-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/pj.h -ppc-dis.lo: ppc-dis.c $(INCDIR)/ansidecl.h sysdep.h \ - config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h -ppc-opc.lo: ppc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/ppc.h \ - opintl.h -sh-dis.lo: sh-dis.c sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H) \ - $(INCDIR)/ansidecl.h -sparc-dis.lo: sparc-dis.c $(INCDIR)/ansidecl.h sysdep.h \ - config.h $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h \ - $(BFD_H) $(INCDIR)/libiberty.h opintl.h -sparc-opc.lo: sparc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/sparc.h -tic30-dis.lo: tic30-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ - $(BFD_H) $(INCDIR)/opcode/tic30.h -tic80-dis.lo: tic80-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/tic80.h \ - $(INCDIR)/dis-asm.h $(BFD_H) -tic80-opc.lo: tic80-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/tic80.h -v850-dis.lo: v850-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/v850.h \ - $(INCDIR)/dis-asm.h $(BFD_H) opintl.h -v850-opc.lo: v850-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/v850.h \ - opintl.h -vax-dis.lo: vax-dis.c $(INCDIR)/opcode/vax.h $(INCDIR)/dis-asm.h \ - $(BFD_H) $(INCDIR)/ansidecl.h -w65-dis.lo: w65-dis.c w65-opc.h $(INCDIR)/dis-asm.h \ - $(BFD_H) $(INCDIR)/ansidecl.h -z8k-dis.lo: z8k-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ - $(BFD_H) z8k-opc.h -z8kgen.lo: z8kgen.c sysdep.h config.h +pj-dis.lo: pj-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/pj.h $(INCDIR)/dis-asm.h $(BFD_H) +pj-opc.lo: pj-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/pj.h +ppc-dis.lo: ppc-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h +ppc-opc.lo: ppc-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/ppc.h opintl.h +sh-dis.lo: sh-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H) +sparc-dis.lo: sparc-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h $(BFD_H) \ + $(INCDIR)/libiberty.h opintl.h +sparc-opc.lo: sparc-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/sparc.h +tic30-dis.lo: tic30-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/tic30.h +tic80-dis.lo: tic80-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/tic80.h $(INCDIR)/dis-asm.h $(BFD_H) +tic80-opc.lo: tic80-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/tic80.h +v850-dis.lo: v850-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/v850.h $(INCDIR)/dis-asm.h $(BFD_H) \ + opintl.h +v850-opc.lo: v850-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/v850.h opintl.h +vax-dis.lo: vax-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/vax.h $(INCDIR)/dis-asm.h $(BFD_H) +w65-dis.lo: w65-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + w65-opc.h $(INCDIR)/dis-asm.h $(BFD_H) +z8k-dis.lo: z8k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) z8k-opc.h +z8kgen.lo: z8kgen.c sysdep.h config.h $(INCDIR)/ansidecl.h # IF YOU PUT ANYTHING HERE IT WILL GO AWAY diff -upr --new-file binutils-2.9.5.0.35/opcodes/Makefile.in binutils-2.9.5.0.37/opcodes/Makefile.in --- binutils-2.9.5.0.35/opcodes/Makefile.in Wed Apr 12 10:27:35 2000 +++ binutils-2.9.5.0.37/opcodes/Makefile.in Sun Apr 16 10:13:54 2000 @@ -309,7 +309,7 @@ acinclude.m4 aclocal.m4 config.in config DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) -TAR = tar +TAR = gtar GZIP_ENV = --best SOURCES = libopcodes.a.c $(libopcodes_la_SOURCES) OBJECTS = libopcodes.a.o $(libopcodes_la_OBJECTS) @@ -742,141 +742,159 @@ dep-am: DEP # DO NOT DELETE THIS LINE -- mkdep uses it. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. -a29k-dis.lo: a29k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ - $(INCDIR)/ansidecl.h $(INCDIR)/opcode/a29k.h -alpha-dis.lo: alpha-dis.c $(INCDIR)/ansidecl.h sysdep.h \ - config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h -alpha-opc.lo: alpha-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/alpha.h \ - $(BFD_H) opintl.h -arc-dis.lo: arc-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ - $(INCDIR)/ansidecl.h $(INCDIR)/opcode/arc.h $(BFDDIR)/elf-bfd.h \ +a29k-dis.lo: a29k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/a29k.h +alpha-dis.lo: alpha-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/alpha.h +alpha-opc.lo: alpha-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/alpha.h $(BFD_H) opintl.h +arc-dis.lo: arc-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/arc.h \ + $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h \ + $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/arc.h \ + $(INCDIR)/elf/reloc-macros.h opintl.h +arc-opc.lo: arc-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/arc.h opintl.h +arm-dis.lo: arm-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) arm-opc.h $(INCDIR)/coff/internal.h \ + $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h opintl.h $(BFDDIR)/elf-bfd.h \ $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \ - $(INCDIR)/bfdlink.h $(INCDIR)/elf/arc.h $(INCDIR)/elf/reloc-macros.h \ - opintl.h -arc-opc.lo: arc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/arc.h \ + $(INCDIR)/elf/arm.h $(INCDIR)/elf/reloc-macros.h +avr-dis.lo: avr-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) opintl.h +cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/libiberty.h $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h \ opintl.h -arm-dis.lo: arm-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ - $(BFD_H) arm-opc.h $(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h \ - $(INCDIR)/bfdlink.h opintl.h $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h \ - $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/elf/arm.h \ - $(INCDIR)/elf/reloc-macros.h -avr-dis.lo: avr-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ - $(INCDIR)/ansidecl.h opintl.h -cgen-asm.lo: cgen-asm.c sysdep.h config.h $(INCDIR)/libiberty.h \ - $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h \ +cgen-dis.lo: cgen-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/libiberty.h $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h +cgen-opc.lo: cgen-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/libiberty.h $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h +d10v-dis.lo: d10v-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/d10v.h $(INCDIR)/dis-asm.h $(BFD_H) +d10v-opc.lo: d10v-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/d10v.h +d30v-dis.lo: d30v-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/d30v.h $(INCDIR)/dis-asm.h $(BFD_H) \ opintl.h -cgen-dis.lo: cgen-dis.c sysdep.h config.h $(INCDIR)/libiberty.h \ - $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h -cgen-opc.lo: cgen-opc.c sysdep.h config.h $(INCDIR)/libiberty.h \ - $(BFD_H) $(INCDIR)/symcat.h $(INCDIR)/opcode/cgen.h -d10v-dis.lo: d10v-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h \ - $(INCDIR)/dis-asm.h $(BFD_H) -d10v-opc.lo: d10v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d10v.h -d30v-dis.lo: d30v-dis.c $(INCDIR)/opcode/d30v.h $(INCDIR)/dis-asm.h \ - $(BFD_H) $(INCDIR)/ansidecl.h opintl.h -d30v-opc.lo: d30v-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/d30v.h -dis-buf.lo: dis-buf.c sysdep.h config.h $(INCDIR)/dis-asm.h \ - $(BFD_H) opintl.h -disassemble.lo: disassemble.c $(INCDIR)/ansidecl.h \ +d30v-opc.lo: d30v-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/d30v.h +dis-buf.lo: dis-buf.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) opintl.h +disassemble.lo: disassemble.c sysdep.h config.h $(INCDIR)/ansidecl.h \ $(INCDIR)/dis-asm.h $(BFD_H) -fr30-asm.lo: fr30-asm.c sysdep.h config.h $(BFD_H) \ - $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \ - fr30-opc.h opintl.h -fr30-desc.lo: fr30-desc.c sysdep.h config.h $(BFD_H) \ - $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \ - fr30-opc.h opintl.h -fr30-dis.lo: fr30-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ +fr30-asm.lo: fr30-asm.c sysdep.h config.h $(INCDIR)/ansidecl.h \ $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \ fr30-opc.h opintl.h -fr30-ibld.lo: fr30-ibld.c sysdep.h config.h $(INCDIR)/dis-asm.h \ +fr30-desc.lo: fr30-desc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \ fr30-opc.h opintl.h -fr30-opc.lo: fr30-opc.c sysdep.h config.h $(BFD_H) \ - $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \ +fr30-dis.lo: fr30-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h \ + $(INCDIR)/opcode/cgen.h fr30-opc.h opintl.h +fr30-ibld.lo: fr30-ibld.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h \ + $(INCDIR)/opcode/cgen.h fr30-opc.h opintl.h +fr30-opc.lo: fr30-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(BFD_H) $(INCDIR)/symcat.h fr30-desc.h $(INCDIR)/opcode/cgen.h \ fr30-opc.h -h8300-dis.lo: h8300-dis.c $(INCDIR)/opcode/h8300.h \ - $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/ansidecl.h opintl.h -h8500-dis.lo: h8500-dis.c h8500-opc.h $(INCDIR)/dis-asm.h \ - $(BFD_H) $(INCDIR)/ansidecl.h opintl.h -hppa-dis.lo: hppa-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ - $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h -i370-dis.lo: i370-dis.c $(INCDIR)/ansidecl.h sysdep.h \ - config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/i370.h -i370-opc.lo: i370-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/i370.h +h8300-dis.lo: h8300-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/h8300.h $(INCDIR)/dis-asm.h $(BFD_H) \ + opintl.h +h8500-dis.lo: h8500-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + h8500-opc.h $(INCDIR)/dis-asm.h $(BFD_H) opintl.h +hppa-dis.lo: hppa-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(BFDDIR)/libhppa.h $(INCDIR)/opcode/hppa.h +i370-dis.lo: i370-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/i370.h +i370-opc.lo: i370-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/i370.h i386-dis.lo: i386-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ $(INCDIR)/ansidecl.h sysdep.h config.h opintl.h -i960-dis.lo: i960-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ - $(INCDIR)/ansidecl.h -m32r-asm.lo: m32r-asm.c sysdep.h config.h $(BFD_H) \ - $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \ - m32r-opc.h opintl.h -m32r-desc.lo: m32r-desc.c sysdep.h config.h $(BFD_H) \ - $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \ - m32r-opc.h opintl.h -m32r-dis.lo: m32r-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ +i960-dis.lo: i960-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) +m32r-asm.lo: m32r-asm.c sysdep.h config.h $(INCDIR)/ansidecl.h \ $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \ m32r-opc.h opintl.h -m32r-ibld.lo: m32r-ibld.c sysdep.h config.h $(INCDIR)/dis-asm.h \ +m32r-desc.lo: m32r-desc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \ m32r-opc.h opintl.h -m32r-opc.lo: m32r-opc.c sysdep.h config.h $(BFD_H) \ - $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \ +m32r-dis.lo: m32r-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h \ + $(INCDIR)/opcode/cgen.h m32r-opc.h opintl.h +m32r-ibld.lo: m32r-ibld.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h \ + $(INCDIR)/opcode/cgen.h m32r-opc.h opintl.h +m32r-opc.lo: m32r-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \ m32r-opc.h -m32r-opinst.lo: m32r-opinst.c sysdep.h config.h $(BFD_H) \ - $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \ +m32r-opinst.lo: m32r-opinst.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(BFD_H) $(INCDIR)/symcat.h m32r-desc.h $(INCDIR)/opcode/cgen.h \ m32r-opc.h -m68k-dis.lo: m68k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ - $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h opintl.h \ +m68k-dis.lo: m68k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/floatformat.h \ + opintl.h $(INCDIR)/opcode/m68k.h +m68k-opc.lo: m68k-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ $(INCDIR)/opcode/m68k.h -m68k-opc.lo: m68k-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m68k.h -m88k-dis.lo: m88k-dis.c $(INCDIR)/dis-asm.h $(BFD_H) \ - $(INCDIR)/ansidecl.h $(INCDIR)/opcode/m88k.h opintl.h -mcore-dis.lo: mcore-dis.c mcore-opc.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/dis-asm.h $(BFD_H) -mips-dis.lo: mips-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ - $(BFD_H) $(INCDIR)/opcode/mips.h opintl.h $(BFDDIR)/elf-bfd.h \ - $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \ - $(INCDIR)/bfdlink.h $(INCDIR)/elf/mips.h $(INCDIR)/elf/reloc-macros.h -mips-opc.lo: mips-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h -mips16-opc.lo: mips16-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mips.h -m10200-dis.lo: m10200-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h \ - $(INCDIR)/dis-asm.h $(BFD_H) opintl.h -m10200-opc.lo: m10200-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10200.h -m10300-dis.lo: m10300-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h \ - $(INCDIR)/dis-asm.h $(BFD_H) opintl.h -m10300-opc.lo: m10300-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h +m88k-dis.lo: m88k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/m88k.h \ + opintl.h +mcore-dis.lo: mcore-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + mcore-opc.h $(INCDIR)/dis-asm.h $(BFD_H) +mips-dis.lo: mips-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/mips.h \ + opintl.h $(BFDDIR)/elf-bfd.h $(INCDIR)/elf/common.h \ + $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h $(INCDIR)/bfdlink.h \ + $(INCDIR)/elf/mips.h $(INCDIR)/elf/reloc-macros.h +mips-opc.lo: mips-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/mips.h +mips16-opc.lo: mips16-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/mips.h +m10200-dis.lo: m10200-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/mn10200.h $(INCDIR)/dis-asm.h $(BFD_H) \ + opintl.h +m10200-opc.lo: m10200-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/mn10200.h +m10300-dis.lo: m10300-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/mn10300.h $(INCDIR)/dis-asm.h $(BFD_H) \ + opintl.h +m10300-opc.lo: m10300-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/mn10300.h ns32k-dis.lo: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \ sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h \ opintl.h -pj-dis.lo: pj-dis.c $(INCDIR)/opcode/pj.h $(INCDIR)/dis-asm.h \ - $(BFD_H) $(INCDIR)/ansidecl.h -pj-opc.lo: pj-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/pj.h -ppc-dis.lo: ppc-dis.c $(INCDIR)/ansidecl.h sysdep.h \ - config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h -ppc-opc.lo: ppc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/ppc.h \ - opintl.h -sh-dis.lo: sh-dis.c sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H) \ - $(INCDIR)/ansidecl.h -sparc-dis.lo: sparc-dis.c $(INCDIR)/ansidecl.h sysdep.h \ - config.h $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h \ - $(BFD_H) $(INCDIR)/libiberty.h opintl.h -sparc-opc.lo: sparc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/sparc.h -tic30-dis.lo: tic30-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ - $(BFD_H) $(INCDIR)/opcode/tic30.h -tic80-dis.lo: tic80-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/tic80.h \ - $(INCDIR)/dis-asm.h $(BFD_H) -tic80-opc.lo: tic80-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/tic80.h -v850-dis.lo: v850-dis.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/v850.h \ - $(INCDIR)/dis-asm.h $(BFD_H) opintl.h -v850-opc.lo: v850-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/v850.h \ +pj-dis.lo: pj-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/pj.h $(INCDIR)/dis-asm.h $(BFD_H) +pj-opc.lo: pj-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/pj.h +ppc-dis.lo: ppc-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h +ppc-opc.lo: ppc-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/ppc.h opintl.h +sh-dis.lo: sh-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + sh-opc.h $(INCDIR)/dis-asm.h $(BFD_H) +sparc-dis.lo: sparc-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/sparc.h $(INCDIR)/dis-asm.h $(BFD_H) \ + $(INCDIR)/libiberty.h opintl.h +sparc-opc.lo: sparc-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/sparc.h +tic30-dis.lo: tic30-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/tic30.h +tic80-dis.lo: tic80-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/tic80.h $(INCDIR)/dis-asm.h $(BFD_H) +tic80-opc.lo: tic80-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/tic80.h +v850-dis.lo: v850-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/v850.h $(INCDIR)/dis-asm.h $(BFD_H) \ opintl.h -vax-dis.lo: vax-dis.c $(INCDIR)/opcode/vax.h $(INCDIR)/dis-asm.h \ - $(BFD_H) $(INCDIR)/ansidecl.h -w65-dis.lo: w65-dis.c w65-opc.h $(INCDIR)/dis-asm.h \ - $(BFD_H) $(INCDIR)/ansidecl.h -z8k-dis.lo: z8k-dis.c sysdep.h config.h $(INCDIR)/dis-asm.h \ - $(BFD_H) z8k-opc.h -z8kgen.lo: z8kgen.c sysdep.h config.h +v850-opc.lo: v850-opc.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/v850.h opintl.h +vax-dis.lo: vax-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/opcode/vax.h $(INCDIR)/dis-asm.h $(BFD_H) +w65-dis.lo: w65-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + w65-opc.h $(INCDIR)/dis-asm.h $(BFD_H) +z8k-dis.lo: z8k-dis.c sysdep.h config.h $(INCDIR)/ansidecl.h \ + $(INCDIR)/dis-asm.h $(BFD_H) z8k-opc.h +z8kgen.lo: z8kgen.c sysdep.h config.h $(INCDIR)/ansidecl.h # IF YOU PUT ANYTHING HERE IT WILL GO AWAY # Tell versions [3.59,3.63) of GNU make to not export all variables. diff -upr --new-file binutils-2.9.5.0.35/opcodes/a29k-dis.c binutils-2.9.5.0.37/opcodes/a29k-dis.c --- binutils-2.9.5.0.35/opcodes/a29k-dis.c Thu Jun 3 11:02:12 1999 +++ binutils-2.9.5.0.37/opcodes/a29k-dis.c Sun Apr 16 10:07:26 2000 @@ -18,6 +18,7 @@ You should have received a copy of the G along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include "sysdep.h" #include "dis-asm.h" #include "opcode/a29k.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/alpha-dis.c binutils-2.9.5.0.37/opcodes/alpha-dis.c --- binutils-2.9.5.0.35/opcodes/alpha-dis.c Sat Jun 26 18:03:25 1999 +++ binutils-2.9.5.0.37/opcodes/alpha-dis.c Sun Apr 16 10:07:26 2000 @@ -21,7 +21,6 @@ Software Foundation, 59 Temple Place - S 02111-1307, USA. */ #include -#include "ansidecl.h" #include "sysdep.h" #include "dis-asm.h" #include "opcode/alpha.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/alpha-opc.c binutils-2.9.5.0.37/opcodes/alpha-opc.c --- binutils-2.9.5.0.35/opcodes/alpha-opc.c Wed Oct 27 09:23:18 1999 +++ binutils-2.9.5.0.37/opcodes/alpha-opc.c Sun Apr 16 10:07:26 2000 @@ -21,7 +21,7 @@ 02111-1307, USA. */ #include -#include "ansidecl.h" +#include "sysdep.h" #include "opcode/alpha.h" #include "bfd.h" #include "opintl.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/arc-dis.c binutils-2.9.5.0.37/opcodes/arc-dis.c --- binutils-2.9.5.0.35/opcodes/arc-dis.c Thu Jun 3 11:02:12 1999 +++ binutils-2.9.5.0.37/opcodes/arc-dis.c Sun Apr 16 10:07:26 2000 @@ -16,6 +16,7 @@ You should have received a copy of the G along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include "sysdep.h" #include "dis-asm.h" #include "opcode/arc.h" #include "elf-bfd.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/arc-opc.c binutils-2.9.5.0.37/opcodes/arc-opc.c --- binutils-2.9.5.0.35/opcodes/arc-opc.c Thu Jun 3 11:02:12 1999 +++ binutils-2.9.5.0.37/opcodes/arc-opc.c Sun Apr 16 10:07:26 2000 @@ -17,7 +17,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include -#include "ansidecl.h" +#include "sysdep.h" #include "opcode/arc.h" #include "opintl.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/avr-dis.c binutils-2.9.5.0.37/opcodes/avr-dis.c --- binutils-2.9.5.0.35/opcodes/avr-dis.c Mon Apr 3 09:45:30 2000 +++ binutils-2.9.5.0.37/opcodes/avr-dis.c Sun Apr 16 10:07:31 2000 @@ -18,6 +18,7 @@ along with this program; if not, write t Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include "sysdep.h" #include "dis-asm.h" #include "opintl.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/d10v-dis.c binutils-2.9.5.0.37/opcodes/d10v-dis.c --- binutils-2.9.5.0.35/opcodes/d10v-dis.c Thu Jun 3 11:02:12 1999 +++ binutils-2.9.5.0.37/opcodes/d10v-dis.c Sun Apr 16 10:07:27 2000 @@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suit #include -#include "ansidecl.h" +#include "sysdep.h" #include "opcode/d10v.h" #include "dis-asm.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/d10v-opc.c binutils-2.9.5.0.37/opcodes/d10v-opc.c --- binutils-2.9.5.0.35/opcodes/d10v-opc.c Mon Nov 22 09:14:13 1999 +++ binutils-2.9.5.0.37/opcodes/d10v-opc.c Sun Apr 16 10:07:27 2000 @@ -19,7 +19,7 @@ along with this file; see the file COPYI Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include -#include "ansidecl.h" +#include "sysdep.h" #include "opcode/d10v.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/d30v-dis.c binutils-2.9.5.0.37/opcodes/d30v-dis.c --- binutils-2.9.5.0.35/opcodes/d30v-dis.c Sun Mar 12 09:31:39 2000 +++ binutils-2.9.5.0.37/opcodes/d30v-dis.c Sun Apr 16 10:07:27 2000 @@ -16,6 +16,7 @@ along with this program; if not, write t Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include +#include "sysdep.h" #include "opcode/d30v.h" #include "dis-asm.h" #include "opintl.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/d30v-opc.c binutils-2.9.5.0.37/opcodes/d30v-opc.c --- binutils-2.9.5.0.35/opcodes/d30v-opc.c Fri Mar 31 09:16:11 2000 +++ binutils-2.9.5.0.37/opcodes/d30v-opc.c Sun Apr 16 10:07:27 2000 @@ -19,7 +19,7 @@ along with this file; see the file COPYI Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include -#include "ansidecl.h" +#include "sysdep.h" #include "opcode/d30v.h" /* This table is sorted. */ diff -upr --new-file binutils-2.9.5.0.35/opcodes/disassemble.c binutils-2.9.5.0.37/opcodes/disassemble.c --- binutils-2.9.5.0.35/opcodes/disassemble.c Mon Apr 3 10:08:40 2000 +++ binutils-2.9.5.0.37/opcodes/disassemble.c Sun Apr 16 10:13:54 2000 @@ -16,7 +16,7 @@ You should have received a copy of the G along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "ansidecl.h" +#include "sysdep.h" #include "dis-asm.h" #ifdef ARCH_all diff -upr --new-file binutils-2.9.5.0.35/opcodes/h8300-dis.c binutils-2.9.5.0.37/opcodes/h8300-dis.c --- binutils-2.9.5.0.35/opcodes/h8300-dis.c Thu Jun 3 11:02:12 1999 +++ binutils-2.9.5.0.37/opcodes/h8300-dis.c Sun Apr 16 10:07:27 2000 @@ -17,6 +17,7 @@ Foundation, Inc., 59 Temple Place - Suit #define DEFINE_TABLE +#include "sysdep.h" #define h8_opcodes h8ops #include "opcode/h8300.h" #include "dis-asm.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/h8500-dis.c binutils-2.9.5.0.37/opcodes/h8500-dis.c --- binutils-2.9.5.0.35/opcodes/h8500-dis.c Thu Jun 3 11:02:12 1999 +++ binutils-2.9.5.0.37/opcodes/h8500-dis.c Sun Apr 16 10:07:27 2000 @@ -20,6 +20,7 @@ Foundation, Inc., 59 Temple Place - Suit #define DISASSEMBLER_TABLE #define DEFINE_TABLE +#include "sysdep.h" #include "h8500-opc.h" #include "dis-asm.h" #include "opintl.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/hppa-dis.c binutils-2.9.5.0.37/opcodes/hppa-dis.c --- binutils-2.9.5.0.35/opcodes/hppa-dis.c Thu Dec 2 08:45:25 1999 +++ binutils-2.9.5.0.37/opcodes/hppa-dis.c Sun Apr 16 10:07:28 2000 @@ -18,7 +18,6 @@ You should have received a copy of the G along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include #include "sysdep.h" #include "dis-asm.h" #include "libhppa.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/i370-dis.c binutils-2.9.5.0.37/opcodes/i370-dis.c --- binutils-2.9.5.0.35/opcodes/i370-dis.c Fri Feb 25 13:39:24 2000 +++ binutils-2.9.5.0.37/opcodes/i370-dis.c Sun Apr 16 10:13:54 2000 @@ -21,7 +21,6 @@ along with this file; see the file COPYI Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include -#include "ansidecl.h" #include "sysdep.h" #include "dis-asm.h" #include "opcode/i370.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/i370-opc.c binutils-2.9.5.0.37/opcodes/i370-opc.c --- binutils-2.9.5.0.35/opcodes/i370-opc.c Fri Feb 25 13:39:24 2000 +++ binutils-2.9.5.0.37/opcodes/i370-opc.c Sun Apr 16 10:13:54 2000 @@ -21,7 +21,7 @@ Software Foundation, 59 Temple Place - S 02111-1307, USA. */ #include -#include "ansidecl.h" +#include "sysdep.h" #include "opcode/i370.h" /* This file holds the i370 opcode table. The opcode table diff -upr --new-file binutils-2.9.5.0.35/opcodes/i960-dis.c binutils-2.9.5.0.37/opcodes/i960-dis.c --- binutils-2.9.5.0.35/opcodes/i960-dis.c Thu Jun 3 11:02:12 1999 +++ binutils-2.9.5.0.37/opcodes/i960-dis.c Sun Apr 16 10:07:28 2000 @@ -16,6 +16,7 @@ along with this program; see the file CO Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include "sysdep.h" #include "dis-asm.h" static const char *const reg_names[] = { diff -upr --new-file binutils-2.9.5.0.35/opcodes/m10200-dis.c binutils-2.9.5.0.37/opcodes/m10200-dis.c --- binutils-2.9.5.0.35/opcodes/m10200-dis.c Thu Jun 3 11:02:12 1999 +++ binutils-2.9.5.0.37/opcodes/m10200-dis.c Sun Apr 16 10:07:28 2000 @@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suit #include -#include "ansidecl.h" +#include "sysdep.h" #include "opcode/mn10200.h" #include "dis-asm.h" #include "opintl.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/m10200-opc.c binutils-2.9.5.0.37/opcodes/m10200-opc.c --- binutils-2.9.5.0.35/opcodes/m10200-opc.c Thu Jun 3 11:02:12 1999 +++ binutils-2.9.5.0.37/opcodes/m10200-opc.c Sun Apr 16 10:07:28 2000 @@ -15,7 +15,7 @@ You should have received a copy of the G along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "ansidecl.h" +#include "sysdep.h" #include "opcode/mn10200.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/m10300-dis.c binutils-2.9.5.0.37/opcodes/m10300-dis.c --- binutils-2.9.5.0.35/opcodes/m10300-dis.c Thu Dec 2 08:45:26 1999 +++ binutils-2.9.5.0.37/opcodes/m10300-dis.c Sun Apr 16 10:07:28 2000 @@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suit #include -#include "ansidecl.h" +#include "sysdep.h" #include "opcode/mn10300.h" #include "dis-asm.h" #include "opintl.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/m10300-opc.c binutils-2.9.5.0.37/opcodes/m10300-opc.c --- binutils-2.9.5.0.35/opcodes/m10300-opc.c Mon Apr 3 09:45:28 2000 +++ binutils-2.9.5.0.37/opcodes/m10300-opc.c Sun Apr 16 10:07:28 2000 @@ -17,7 +17,7 @@ Foundation, Inc., 59 Temple Place - Suit /* This file is formatted at > 80 columns. Attempting to read it on a screeen with less than 80 columns will be difficult. */ -#include "ansidecl.h" +#include "sysdep.h" #include "opcode/mn10300.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/m68k-dis.c binutils-2.9.5.0.37/opcodes/m68k-dis.c --- binutils-2.9.5.0.35/opcodes/m68k-dis.c Thu Jun 3 11:02:12 1999 +++ binutils-2.9.5.0.37/opcodes/m68k-dis.c Sun Apr 16 10:07:29 2000 @@ -16,6 +16,7 @@ You should have received a copy of the G along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include "sysdep.h" #include "dis-asm.h" #include "floatformat.h" #include diff -upr --new-file binutils-2.9.5.0.35/opcodes/m68k-opc.c binutils-2.9.5.0.37/opcodes/m68k-opc.c --- binutils-2.9.5.0.35/opcodes/m68k-opc.c Thu Jun 3 11:02:12 1999 +++ binutils-2.9.5.0.37/opcodes/m68k-opc.c Sun Apr 16 10:07:29 2000 @@ -19,7 +19,7 @@ along with this file; see the file COPYI Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "ansidecl.h" +#include "sysdep.h" #include "opcode/m68k.h" #define one(x) ((unsigned int) (x) << 16) diff -upr --new-file binutils-2.9.5.0.35/opcodes/m88k-dis.c binutils-2.9.5.0.37/opcodes/m88k-dis.c --- binutils-2.9.5.0.35/opcodes/m88k-dis.c Thu Jun 3 11:02:12 1999 +++ binutils-2.9.5.0.37/opcodes/m88k-dis.c Sun Apr 16 10:07:29 2000 @@ -20,6 +20,7 @@ You should have received a copy of the G along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include "sysdep.h" #include "dis-asm.h" #include "opcode/m88k.h" #include "opintl.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/mcore-dis.c binutils-2.9.5.0.37/opcodes/mcore-dis.c --- binutils-2.9.5.0.35/opcodes/mcore-dis.c Fri Feb 25 13:39:24 2000 +++ binutils-2.9.5.0.37/opcodes/mcore-dis.c Sun Apr 16 10:13:54 2000 @@ -15,6 +15,7 @@ You should have received a copy of the G along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include "sysdep.h" #include #define STATIC_TABLE #define DEFINE_TABLE diff -upr --new-file binutils-2.9.5.0.35/opcodes/mips-dis.c binutils-2.9.5.0.37/opcodes/mips-dis.c --- binutils-2.9.5.0.35/opcodes/mips-dis.c Thu Feb 24 11:10:46 2000 +++ binutils-2.9.5.0.37/opcodes/mips-dis.c Sun Apr 16 10:07:29 2000 @@ -18,7 +18,6 @@ You should have received a copy of the G along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include #include "sysdep.h" #include "dis-asm.h" #include "opcode/mips.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/mips-opc.c binutils-2.9.5.0.37/opcodes/mips-opc.c --- binutils-2.9.5.0.35/opcodes/mips-opc.c Thu Feb 24 11:10:47 2000 +++ binutils-2.9.5.0.37/opcodes/mips-opc.c Sun Apr 16 10:07:30 2000 @@ -20,7 +20,7 @@ along with this file; see the file COPYI Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include -#include "ansidecl.h" +#include "sysdep.h" #include "opcode/mips.h" /* Short hand so the lines aren't too long. */ diff -upr --new-file binutils-2.9.5.0.35/opcodes/mips16-opc.c binutils-2.9.5.0.37/opcodes/mips16-opc.c --- binutils-2.9.5.0.35/opcodes/mips16-opc.c Thu Jun 3 11:02:13 1999 +++ binutils-2.9.5.0.37/opcodes/mips16-opc.c Sun Apr 16 10:07:30 2000 @@ -20,7 +20,7 @@ Software Foundation, 59 Temple Place - S 02111-1307, USA. */ #include -#include "ansidecl.h" +#include "sysdep.h" #include "opcode/mips.h" /* This is the opcodes table for the mips16 processor. The format of diff -upr --new-file binutils-2.9.5.0.35/opcodes/pj-dis.c binutils-2.9.5.0.37/opcodes/pj-dis.c --- binutils-2.9.5.0.35/opcodes/pj-dis.c Mon Sep 6 10:15:33 1999 +++ binutils-2.9.5.0.37/opcodes/pj-dis.c Sun Apr 16 10:07:30 2000 @@ -18,6 +18,7 @@ Foundation, Inc., 59 Temple Place - Suit #include +#include "sysdep.h" #include "opcode/pj.h" #include "dis-asm.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/pj-opc.c binutils-2.9.5.0.37/opcodes/pj-opc.c --- binutils-2.9.5.0.35/opcodes/pj-opc.c Mon Sep 6 10:15:33 1999 +++ binutils-2.9.5.0.37/opcodes/pj-opc.c Sun Apr 16 10:07:30 2000 @@ -17,7 +17,7 @@ along with this program; if not, write t Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "ansidecl.h" +#include "sysdep.h" #include "opcode/pj.h" const pj_opc_info_t pj_opc_info[512] = diff -upr --new-file binutils-2.9.5.0.35/opcodes/ppc-dis.c binutils-2.9.5.0.37/opcodes/ppc-dis.c --- binutils-2.9.5.0.35/opcodes/ppc-dis.c Thu Jun 3 11:02:13 1999 +++ binutils-2.9.5.0.37/opcodes/ppc-dis.c Sun Apr 16 10:07:30 2000 @@ -19,7 +19,6 @@ along with this file; see the file COPYI Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include -#include "ansidecl.h" #include "sysdep.h" #include "dis-asm.h" #include "opcode/ppc.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/ppc-opc.c binutils-2.9.5.0.37/opcodes/ppc-opc.c --- binutils-2.9.5.0.35/opcodes/ppc-opc.c Mon Apr 3 09:45:29 2000 +++ binutils-2.9.5.0.37/opcodes/ppc-opc.c Sun Apr 16 10:07:30 2000 @@ -20,7 +20,7 @@ Software Foundation, 59 Temple Place - S 02111-1307, USA. */ #include -#include "ansidecl.h" +#include "sysdep.h" #include "opcode/ppc.h" #include "opintl.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/sh-dis.c binutils-2.9.5.0.37/opcodes/sh-dis.c --- binutils-2.9.5.0.35/opcodes/sh-dis.c Wed Apr 5 17:06:29 2000 +++ binutils-2.9.5.0.37/opcodes/sh-dis.c Sun Apr 16 10:07:30 2000 @@ -16,6 +16,7 @@ along with this program; if not, write t Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include +#include "sysdep.h" #define STATIC_TABLE #define DEFINE_TABLE diff -upr --new-file binutils-2.9.5.0.35/opcodes/sparc-dis.c binutils-2.9.5.0.37/opcodes/sparc-dis.c --- binutils-2.9.5.0.35/opcodes/sparc-dis.c Fri Jul 9 08:21:47 1999 +++ binutils-2.9.5.0.37/opcodes/sparc-dis.c Sun Apr 16 10:07:30 2000 @@ -17,7 +17,6 @@ Foundation, Inc., 59 Temple Place - Suit #include -#include "ansidecl.h" #include "sysdep.h" #include "opcode/sparc.h" #include "dis-asm.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/sparc-opc.c binutils-2.9.5.0.37/opcodes/sparc-opc.c --- binutils-2.9.5.0.35/opcodes/sparc-opc.c Mon Jun 7 14:57:14 1999 +++ binutils-2.9.5.0.37/opcodes/sparc-opc.c Sun Apr 16 10:13:54 2000 @@ -24,7 +24,7 @@ Boston, MA 02111-1307, USA. */ slower, but would mess up some macros a bit. xoxorich. */ #include -#include "ansidecl.h" +#include "sysdep.h" #include "opcode/sparc.h" /* Some defines to make life easy. */ diff -upr --new-file binutils-2.9.5.0.35/opcodes/sysdep.h binutils-2.9.5.0.37/opcodes/sysdep.h --- binutils-2.9.5.0.35/opcodes/sysdep.h Thu Jun 3 11:02:13 1999 +++ binutils-2.9.5.0.37/opcodes/sysdep.h Sun Apr 16 10:07:30 2000 @@ -27,7 +27,7 @@ Foundation, Inc., 59 Temple Place - Suit #include "config.h" -#include +#include "ansidecl.h" #ifdef HAVE_STDLIB_H #include diff -upr --new-file binutils-2.9.5.0.35/opcodes/tic80-dis.c binutils-2.9.5.0.37/opcodes/tic80-dis.c --- binutils-2.9.5.0.35/opcodes/tic80-dis.c Thu Jun 3 11:02:13 1999 +++ binutils-2.9.5.0.37/opcodes/tic80-dis.c Sun Apr 16 10:07:30 2000 @@ -17,7 +17,7 @@ Foundation, Inc., 59 Temple Place - Suit #include -#include "ansidecl.h" +#include "sysdep.h" #include "opcode/tic80.h" #include "dis-asm.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/tic80-opc.c binutils-2.9.5.0.37/opcodes/tic80-opc.c --- binutils-2.9.5.0.35/opcodes/tic80-opc.c Thu Jun 3 11:02:13 1999 +++ binutils-2.9.5.0.37/opcodes/tic80-opc.c Sun Apr 16 10:07:30 2000 @@ -19,7 +19,7 @@ Software Foundation, 59 Temple Place - S 02111-1307, USA. */ #include -#include "ansidecl.h" +#include "sysdep.h" #include "opcode/tic80.h" /* This file holds various tables for the TMS320C80 (MVP). diff -upr --new-file binutils-2.9.5.0.35/opcodes/v850-dis.c binutils-2.9.5.0.37/opcodes/v850-dis.c --- binutils-2.9.5.0.35/opcodes/v850-dis.c Thu Jun 3 11:02:13 1999 +++ binutils-2.9.5.0.37/opcodes/v850-dis.c Sun Apr 16 10:07:31 2000 @@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suit #include -#include "ansidecl.h" +#include "sysdep.h" #include "opcode/v850.h" #include "dis-asm.h" #include "opintl.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/v850-opc.c binutils-2.9.5.0.37/opcodes/v850-opc.c --- binutils-2.9.5.0.35/opcodes/v850-opc.c Thu Jun 3 11:02:13 1999 +++ binutils-2.9.5.0.37/opcodes/v850-opc.c Sun Apr 16 10:07:31 2000 @@ -15,7 +15,7 @@ You should have received a copy of the G along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "ansidecl.h" +#include "sysdep.h" #include "opcode/v850.h" #include #include "opintl.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/vax-dis.c binutils-2.9.5.0.37/opcodes/vax-dis.c --- binutils-2.9.5.0.35/opcodes/vax-dis.c Thu Jun 3 11:02:13 1999 +++ binutils-2.9.5.0.37/opcodes/vax-dis.c Sun Apr 16 10:07:31 2000 @@ -16,6 +16,7 @@ You should have received a copy of the G along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#include "sysdep.h" #include "opcode/vax.h" #include "dis-asm.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/w65-dis.c binutils-2.9.5.0.37/opcodes/w65-dis.c --- binutils-2.9.5.0.35/opcodes/w65-dis.c Thu Jun 3 11:02:13 1999 +++ binutils-2.9.5.0.37/opcodes/w65-dis.c Sun Apr 16 10:07:31 2000 @@ -16,6 +16,7 @@ along with this program; if not, write t Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include +#include "sysdep.h" #define STATIC_TABLE #define DEFINE_TABLE diff -upr --new-file binutils-2.9.5.0.35/opcodes/z8k-dis.c binutils-2.9.5.0.37/opcodes/z8k-dis.c --- binutils-2.9.5.0.35/opcodes/z8k-dis.c Thu Jun 3 11:02:13 1999 +++ binutils-2.9.5.0.37/opcodes/z8k-dis.c Sun Apr 16 10:07:31 2000 @@ -17,7 +17,6 @@ You should have received a copy of the G along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include #include "sysdep.h" #include "dis-asm.h" diff -upr --new-file binutils-2.9.5.0.35/opcodes/z8kgen.c binutils-2.9.5.0.37/opcodes/z8kgen.c --- binutils-2.9.5.0.35/opcodes/z8kgen.c Thu Jun 3 11:02:13 1999 +++ binutils-2.9.5.0.37/opcodes/z8kgen.c Sun Apr 16 10:07:31 2000 @@ -18,7 +18,6 @@ Foundation, Inc., 59 Temple Place - Suit /* This program generates z8k-opc.h */ -#include #include "sysdep.h" #define BYTE_INFO_LEN 10