diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2008-08-07 20:04:32 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2008-08-07 20:04:32 +0000 |
commit | d35fd65983caac22b1204d4c0d79f5b9eabb1286 (patch) | |
tree | 4986b6f4c956953e38b0b63c54e7fd650086198b /bfd/elflink.c | |
parent | d5eaccd71d0eecde192070121e3c66a8f1bee39f (diff) | |
download | binutils-gdb-d35fd65983caac22b1204d4c0d79f5b9eabb1286.tar.gz |
bfd/
* elf-bfd.h (elf_backend_data): Add a "rela_plts_and_copies_p" field.
* elfxx-target.h (elf_backend_rela_plts_and_copies_p): New macro.
(elfNN_bed): Use it.
* elf.c (_bfd_elf_get_synthetic_symtab): Use rela_plts_and_copies_p
instead of default_use_rela_p to choose between ".rel.plt" and
".rela.plt".
* elflink.c (_bfd_elf_create_dynamic_sections): Use
rela_plts_and_copies_p instead of default_use_rela_p to choose
between ".rel.plt" and ".rela.plt", and between ".rel.bss" and
".rela.bss".
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index 488f98afdb7..de7f3ba40f5 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -309,7 +309,7 @@ _bfd_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info) } s = bfd_make_section_with_flags (abfd, - (bed->default_use_rela_p + (bed->rela_plts_and_copies_p ? ".rela.plt" : ".rel.plt"), flags | SEC_READONLY); if (s == NULL @@ -347,7 +347,7 @@ _bfd_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info) if (! info->shared) { s = bfd_make_section_with_flags (abfd, - (bed->default_use_rela_p + (bed->rela_plts_and_copies_p ? ".rela.bss" : ".rel.bss"), flags | SEC_READONLY); if (s == NULL |