aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
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/ldlang.c
parent4a69ea0b0e80d97ae0534f4fa412e240e7a9473f (diff)
downloadfsf-binutils-gdb-1e281515063f796a7ff5c9596222a85084dd7284.zip
fsf-binutils-gdb-1e281515063f796a7ff5c9596222a85084dd7284.tar.gz
fsf-binutils-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/ldlang.c')
-rw-r--r--ld/ldlang.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 456bc7f..bc705ad 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -178,6 +178,7 @@ lang_statement_list_type lang_output_section_statement;
lang_statement_list_type *stat_ptr = &statement_list;
lang_statement_list_type file_chain = { NULL, NULL };
const char *entry_symbol = NULL;
+const char *entry_section = ".text";
boolean entry_from_cmdline;
boolean lang_has_input_file = false;
boolean had_output_filename = false;
@@ -3465,7 +3466,7 @@ lang_finish ()
/* Can't find the entry symbol, and it's not a number. Use
the first address in the text section. */
- ts = bfd_get_section_by_name (output_bfd, ".text");
+ ts = bfd_get_section_by_name (output_bfd, entry_section);
if (ts != (asection *) NULL)
{
if (warn)