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/elfxx-target.h | |
parent | d5eaccd71d0eecde192070121e3c66a8f1bee39f (diff) | |
download | gdb-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/elfxx-target.h')
-rw-r--r-- | bfd/elfxx-target.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h index 148f5cb..d897c32 100644 --- a/bfd/elfxx-target.h +++ b/bfd/elfxx-target.h @@ -555,6 +555,9 @@ #ifndef elf_backend_default_use_rela_p #define elf_backend_default_use_rela_p !USE_REL #endif +#ifndef elf_backend_rela_plts_and_copies_p +#define elf_backend_rela_plts_and_copies_p elf_backend_default_use_rela_p +#endif #ifndef elf_backend_rela_normal #define elf_backend_rela_normal 0 @@ -718,6 +721,7 @@ static struct elf_backend_data elfNN_bed = elf_backend_may_use_rel_p, elf_backend_may_use_rela_p, elf_backend_default_use_rela_p, + elf_backend_rela_plts_and_copies_p, elf_backend_rela_normal, elf_backend_sign_extend_vma, elf_backend_want_got_plt, |