This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Patch to use #ifdef CHOOSE_RELOC_SIZE in aout-target.h
- To: binutils at sourceware dot cygnus dot com
- Subject: Patch to use #ifdef CHOOSE_RELOC_SIZE in aout-target.h
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Date: Tue, 29 Feb 2000 23:37:18 +0100
Lots of other, more target-specific files, have this buglet but
I did not provide patches for them; perhaps I should. Currently
no targets seem to #define CHOOSE_RELOC_SIZE so the bug would be
uncovered.
Tue Feb 29 23:26:57 2000 Hans-Peter Nilsson <hp@axis.com>
* aout-target.h (MY(write_object_contents)): Use #ifdef
CHOOSE_RELOC_SIZE, not #if.
Index: aout-target.h
===================================================================
RCS file: /cvs/src/src/bfd/aout-target.h,v
retrieving revision 1.5
diff -p -c -r1.5 aout-target.h
*** aout-target.h 1999/12/10 18:51:34 1.5
--- aout-target.h 2000/02/29 22:26:19
*************** MY(write_object_contents) (abfd)
*** 258,264 ****
struct external_exec exec_bytes;
struct internal_exec *execp = exec_hdr (abfd);
! #if CHOOSE_RELOC_SIZE
CHOOSE_RELOC_SIZE(abfd);
#else
obj_reloc_entry_size (abfd) = RELOC_STD_SIZE;
--- 258,264 ----
struct external_exec exec_bytes;
struct internal_exec *execp = exec_hdr (abfd);
! #ifdef CHOOSE_RELOC_SIZE
CHOOSE_RELOC_SIZE(abfd);
#else
obj_reloc_entry_size (abfd) = RELOC_STD_SIZE;
brgds, H-P