aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-02-10 10:55:23 +0000
committerAlan Modra <amodra@gmail.com>2002-02-10 10:55:23 +0000
commit1e281515063f796a7ff5c9596222a85084dd7284 (patch)
treede02d9c92d35fb99533ae5c618e8ee25b95c431c /ld/emultempl
parent4a69ea0b0e80d97ae0534f4fa412e240e7a9473f (diff)
downloadgdb-1e281515063f796a7ff5c9596222a85084dd7284.zip
gdb-1e281515063f796a7ff5c9596222a85084dd7284.tar.gz
gdb-1e281515063f796a7ff5c9596222a85084dd7284.tar.bz2
* ldlang.c (entry_section): New initialised variable.
(lang_finish): Use it. * ldlang.h (entry_section): Declare. * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set entry_section to ".opd".
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/ppc64elf.em5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/emultempl/ppc64elf.em b/ld/emultempl/ppc64elf.em
index 7e52434..27b20ce 100644
--- a/ld/emultempl/ppc64elf.em
+++ b/ld/emultempl/ppc64elf.em
@@ -47,6 +47,11 @@ gld${EMULATION_NAME}_after_allocation ()
static void
gld${EMULATION_NAME}_finish ()
{
+ /* e_entry on PowerPC64 points to the function descriptor for
+ _start. If _start is missing, default to the first function
+ descriptor in the .opd section. */
+ entry_section = ".opd";
+
/* If generating a relocatable output file, then we don't have any
stubs. */
if (link_info.relocateable)