aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-bfd.h
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2008-08-07 20:04:32 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2008-08-07 20:04:32 +0000
commitd35fd65983caac22b1204d4c0d79f5b9eabb1286 (patch)
tree4986b6f4c956953e38b0b63c54e7fd650086198b /bfd/elf-bfd.h
parentd5eaccd71d0eecde192070121e3c66a8f1bee39f (diff)
downloadgdb-d35fd65983caac22b1204d4c0d79f5b9eabb1286.zip
gdb-d35fd65983caac22b1204d4c0d79f5b9eabb1286.tar.gz
gdb-d35fd65983caac22b1204d4c0d79f5b9eabb1286.tar.bz2
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/elf-bfd.h')
-rw-r--r--bfd/elf-bfd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index d177255..2b739f9 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -1189,6 +1189,9 @@ struct elf_backend_data
section. */
unsigned default_use_rela_p : 1;
+ /* True if PLT and copy relocations should be RELA by default. */
+ unsigned rela_plts_and_copies_p : 1;
+
/* Set if RELA relocations for a relocatable link can be handled by
generic code. Backends that set this flag need do nothing in the
backend relocate_section routine for relocatable linking. */