summaryrefslogtreecommitdiff
path: root/bfd/coff-i386.c
Commit message (Collapse)AuthorAgeFilesLines
* Touches most files in bfd/, so likely will be blamed for everything..Alan Modra2001-09-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | o bfd_read and bfd_write lose an unnecessary param and become bfd_bread and bfd_bwrite. o bfd_*alloc now all take a bfd_size_type arg, and will error if size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files or bugs in linker scripts etc. o file_ptr becomes a bfd_signed_vma. Besides matching sizes with various other types involved in handling sections, this should make it easier for bfd to support a 64 bit off_t on 32 bit hosts that provide it. o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*) generally available. They now cast their args to bfd_vma and bfd_byte * as appropriate, which removes a swag of casts from the source. o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and aout-encap.c. o Zillions of formatting and -Wconversion fixes.
* * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd isIan Lance Taylor2001-05-081-2/+6
| | | | | | NULL or is not COFF. (coff_i386_rtype_to_howto): Don't dump core if output section owner is not COFF.
* * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable sectionDJ Delorie2001-04-131-2/+2
| | | | flag on pe-i386 targets.
* Update copyright noticesNick Clifton2001-03-081-1/+2
|
* 2000-11-10 Kazu Hirata <kazu@hxi.com>Kazu Hirata2000-11-101-1/+1
| | | | | | | | | * coff-h8300.c: Fix formatting. * coff-h8500.c: Likewise. * coff-i386.c: Likewise. * coff-i860.c: Likewise. * coff-i960.c: Likewise. * coff-ia64.c: Likewise.
* Applied Stephane Carrez <Stephane.Carrez@worldnet.fr> patches to add supportNick Clifton2000-06-191-3/+1
| | | | for m68hc11 and m68hc12 processors.
* 2000-06-18 H.J. Lu <hjl@gnu.org>H.J. Lu2000-06-181-1/+22
| | | | | | | * coff-i386.c (coff_i386_reloc): Don't return in case of output_bfd == (bfd *) NULL if COFF_WITH_PE is defined. Compensate PE relocations when linking with non-PE object files to generate a non-PE executable.
* Most of these changes are really only cosmetic. The readelf.c patchAlan Modra2000-01-261-2/+1
| | | | | | fixes a thinko in get_dynamic_flags. I found at least one message string that included a `%' being passed to printf in the format argument.
* Move PE format object file detection code into common place.Nick Clifton1999-12-171-65/+2
|
* Support 8 and 16-bit relocs for i386coff. Enable i386 gas testsuite testsAlan Modra1999-09-181-100/+108
| | | | | | previously disabled for lack of such support. For *-*-linux*libc1 targets, XFAIL a ld testsuite that fails due to a bug in the dynamic linker prior to glibc-2.1.
* * coff-i386.c (in_reloc_p): Add declaration.Ian Lance Taylor1999-09-071-11/+12
| | | | | (i386coff_vec): Simplify initialization of application_section_flags.
* 1999-08-18 Donn Terry <donn@interix.com>Ian Lance Taylor1999-08-181-10/+25
| | | | | | | | | | | | | | | | | * coff-i386.c (coff_i386_reloc): Handle R_IMAGEBASE. (RTYPE2HOWTO): Return NULL if reloc type is out of range. (coff_i386_rtype_to_howto): Likewise. * coffcode.h (coff_slurp_symbol_table): Change a -2 to N_DEBUG. Completely ignore symbols which are all zero. (dummy_reloc16_estimate): Add return 0. * cofflink.c (_bfd_coff_link_input_bfd): Rename inner scope variable copy to name_copy to avoid shadowing outer scope variable. * libcoff-in.h (coff_data_type): Change raw_syment_count field from unsigned int to unsigned long. Add timestamp field. * libcoff.h: Rebuild. Also comment changes.
* Add new field to bfd_target structure.Nick Clifton1999-07-191-1/+3
| | | | | Initialise this field for all known bfd targets. Add new search function to targets.c
* * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSEDIan Lance Taylor1999-07-121-19/+19
| | | | | | | | | | | | | | | | | | | | | as appropriate. Use EMPTY_HOWTO as appropriate. Fill in structure initializations. Add casts. * reloc.c (EMPTY_HOWTO): Define. * bfd-in2.h: Rebuild. * coff-h8300.c (h8300_reloc16_extra_cases): Remove useless comparisons against 0. * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Change previous_ibfd_e_flags to unsigned long. * vms.h (struct vms_private_data_struct): Change section_count to unsigned. * vms-gsd.c (_bfd_vms_slurp_gsd): Change psect_idx to unsigned. (_bfd_vms_write_gsd): Change symnum to unsigned. * vms-hdr.c (_bfd_vms_write_hdr): Change symnum to unsigned. * vms-tir.c (etir_sta): Change psect to unsigned. (alloc_section): Change idx to unsigned. (tir_sta, tir_ctl): Change psect to unsigned. (_bfd_vms_write_tir): Change len and before to bfd_size_type. * vms.c (priv_section_count): Change to unsigned.
* Initial revisionRichard Henderson1999-05-031-0/+637