This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[patch] elf32-arm.c: Fix shared library creation on arm-none-symbianelf. (Take 2)
- From: Kazu Hirata <kazu at codesourcery dot com>
- To: binutils at sources dot redhat dot com
- Cc: amodra at bigpond dot net dot au
- Date: Tue, 26 Jul 2005 20:26:44 -0700
- Subject: [patch] elf32-arm.c: Fix shared library creation on arm-none-symbianelf. (Take 2)
Hi,
Attached is a revised patch to fix shared library creation on
arm-none-symbianelf, incorporating Alan's comment at
http://sources.redhat.com/ml/binutils/2005-07/msg00430.html
The patch fixes the problem by defining elf_backend_want_got_sym to be
0. Note that symbianelf is the last target we define in elf32-arm.c,
so we don't have to worry about accidentally changing other targets'
behavior.
Tested by building i686-pc-linux-gnu X arm-none-symbianelf. OK to
apply?
Kazu Hirata
2005-07-27 Kazu Hirata <kazu@codesourcery.com>
* elf32-arm.c (elf_backend_want_got_sym): New.
Index: elf32-arm.c
===================================================================
RCS file: /home/gcc/repos/src/src/bfd/elf32-arm.c,v
retrieving revision 1.49
diff -u -d -p -r1.49 elf32-arm.c
--- elf32-arm.c 8 Jul 2005 06:19:58 -0000 1.49
+++ elf32-arm.c 27 Jul 2005 02:57:04 -0000
@@ -7016,6 +7016,10 @@ elf32_arm_symbian_modify_segment_map (bf
#undef elf_backend_got_header_size
#define elf_backend_got_header_size 0
+/* Hence no _GLOBAL_OFFSET_TABLE_ either. */
+#undef elf_backend_want_got_sym
+#define elf_backend_want_got_sym 0
+
/* Similarly, there is no .got.plt section. */
#undef elf_backend_want_got_plt
#define elf_backend_want_got_plt 0