diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-09-11 21:39:03 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-09-11 21:39:03 +0000 |
commit | cdc1d011fe62449929c3e738dad1551bd7fb9e77 (patch) | |
tree | 8d670c2ece0d39f63b04a0e28b3d8567e1f6fc2a | |
parent | 39beedd95ad15cf146626a01f6b5d0c01e9c7996 (diff) | |
download | gdb-cdc1d011fe62449929c3e738dad1551bd7fb9e77.tar.gz |
* coff-ppc.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define.
1999-09-11 Donn Terry <donn@interix.com>
* coffcode.h (coff_set_alignment_hook): Delete POWERPC_LE_PE
special handling.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/coff-ppc.c | 15 | ||||
-rw-r--r-- | bfd/coffcode.h | 31 |
3 files changed, 19 insertions, 32 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index d6bd2fe27aa..4895d5f7358 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,10 +1,15 @@ 1999-09-11 Ian Lance Taylor <ian@zembu.com> + * coff-ppc.c (COFF_SECTION_ALIGNMENT_ENTRIES): Define. + * elfcode.h (write_relocs): Handle an absolute symbol in REL relocs as we do for RELA relocs. 1999-09-11 Donn Terry <donn@interix.com> + * coffcode.h (coff_set_alignment_hook): Delete POWERPC_LE_PE + special handling. + * cofflink.c (_bfd_coff_link_input_bfd): If a symbol is stripped, don't write out the associated line numbers. diff --git a/bfd/coff-ppc.c b/bfd/coff-ppc.c index 6d5e7814b71..934027c7d6e 100644 --- a/bfd/coff-ppc.c +++ b/bfd/coff-ppc.c @@ -2223,6 +2223,20 @@ static void ppc_coff_swap_sym_in_hook PARAMS ((bfd *, PTR, PTR)); #define POWERPC_LE_PE +#define COFF_SECTION_ALIGNMENT_ENTRIES \ +{ COFF_SECTION_NAME_EXACT_MATCH (".idata$2"), \ + COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }, \ +{ COFF_SECTION_NAME_EXACT_MATCH (".idata$3"), \ + COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }, \ +{ COFF_SECTION_NAME_EXACT_MATCH (".idata$4"), \ + COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \ +{ COFF_SECTION_NAME_EXACT_MATCH (".idata$5"), \ + COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \ +{ COFF_SECTION_NAME_EXACT_MATCH (".idata$6"), \ + COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 1 }, \ +{ COFF_SECTION_NAME_EXACT_MATCH (".reloc"), \ + COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 1 } + #include "coffcode.h" @@ -2316,7 +2330,6 @@ ppc_get_last() where the POWERPC_LE_PE macro modifies the code. It is left in as a precise form of comment. krk@cygnus.com */ -#define POWERPC_LE_PE /* Do the final link step. */ diff --git a/bfd/coffcode.h b/bfd/coffcode.h index eac8e84bea4..f18c2c90325 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -1458,37 +1458,6 @@ coff_set_alignment_hook (abfd, section, scnhdr) ELIFALIGN_SET (hdr->s_flags, IMAGE_SCN_ALIGN_2BYTES, 1) ELIFALIGN_SET (hdr->s_flags, IMAGE_SCN_ALIGN_1BYTES, 0) -#ifdef POWERPC_LE_PE - if (strcmp (section->name, ".idata$2") == 0) - { - section->alignment_power = 0; - } - else if (strcmp (section->name, ".idata$3") == 0) - { - section->alignment_power = 0; - } - else if (strcmp (section->name, ".idata$4") == 0) - { - section->alignment_power = 2; - } - else if (strcmp (section->name, ".idata$5") == 0) - { - section->alignment_power = 2; - } - else if (strcmp (section->name, ".idata$6") == 0) - { - section->alignment_power = 1; - } - else if (strcmp (section->name, ".reloc") == 0) - { - section->alignment_power = 1; - } - else if (strncmp (section->name, ".stab", 5) == 0) - { - section->alignment_power = 2; - } -#endif - /* In a PE image file, the s_paddr field holds the virtual size of a section, while the s_size field holds the raw size. We also keep the original section flag value, since not every bit can be |