aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-target.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-08-08 13:09:33 +0000
committerAlan Modra <amodra@gmail.com>2001-08-08 13:09:33 +0000
commit2517a57fdf395c6e5068577d1d4f86b3c6935e6d (patch)
tree4d215ffb01898e890e9512c20a263b5086460b96 /bfd/elfxx-target.h
parentc0e047e0e5090fe5148f5230e7e4abb3ff2c50ee (diff)
downloadgdb-2517a57fdf395c6e5068577d1d4f86b3c6935e6d.zip
gdb-2517a57fdf395c6e5068577d1d4f86b3c6935e6d.tar.gz
gdb-2517a57fdf395c6e5068577d1d4f86b3c6935e6d.tar.bz2
* elf-bfd.h (struct elf_backend_data): Add want_got_sym.
* elfxx-target.h (elf_backend_want_got_sym): Define. (elfNN_bed): Add elf_backend_want_got_sym. * elflink.c (_bfd_elf_create_got_section): Define _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
Diffstat (limited to 'bfd/elfxx-target.h')
-rw-r--r--bfd/elfxx-target.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h
index 5f413d2..2b86aac 100644
--- a/bfd/elfxx-target.h
+++ b/bfd/elfxx-target.h
@@ -101,6 +101,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#ifndef elf_backend_can_gc_sections
#define elf_backend_can_gc_sections 0
#endif
+#ifndef elf_backend_want_got_sym
+#define elf_backend_want_got_sym 1
+#endif
#ifndef elf_backend_gc_mark_hook
#define elf_backend_gc_mark_hook NULL
#endif
@@ -439,7 +442,8 @@ static CONST struct elf_backend_data elfNN_bed =
elf_backend_plt_not_loaded,
elf_backend_plt_alignment,
elf_backend_can_gc_sections,
- elf_backend_want_dynbss
+ elf_backend_want_dynbss,
+ elf_backend_want_got_sym
};
#endif