diff options
author | Zack Weinberg <zackw@panix.com> | 2005-06-01 04:04:19 +0000 |
---|---|---|
committer | Zack Weinberg <zackw@panix.com> | 2005-06-01 04:04:19 +0000 |
commit | a359509ed39f8affc5f3e995b57d7611edfbb59d (patch) | |
tree | cea3b01c4597471699599bfb337a20439ee2071b /ld/ldlang.h | |
parent | 7b8f476a17b961ff3d26cf02c8ea0d1da26ff5e6 (diff) | |
download | gdb-a359509ed39f8affc5f3e995b57d7611edfbb59d.zip gdb-a359509ed39f8affc5f3e995b57d7611edfbb59d.tar.gz gdb-a359509ed39f8affc5f3e995b57d7611edfbb59d.tar.bz2 |
ld:
* ldlang.c (entry_symbol_default): New file-scope global.
(lang_finish): Use it, not a hardwired "start".
(lang_default_entry): Set it.
* ldlang.h: Declare lang_default_entry.
* emultempl/beos.em, emultempl/pe.em: Use lang_default_entry,
not lang_add_entry, to override default entry point symbol.
ld/testsuite:
* ld-scripts/align.exp: Mark align1 XFAIL on PECOFF targets.
* ld-scripts/data.exp: Mark data UNSUPPORTED on a.out targets.
* ld-scripts/provide.exp, ld-scripts/size.exp: Mark all tests
UNSUPPORTED on a.out targets. Tidy.
Diffstat (limited to 'ld/ldlang.h')
-rw-r--r-- | ld/ldlang.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/ldlang.h b/ld/ldlang.h index eb4fc5e..7b88647 100644 --- a/ld/ldlang.h +++ b/ld/ldlang.h @@ -474,6 +474,8 @@ extern void lang_section_start (const char *, union etree_union *, const segment_type *); extern void lang_add_entry (const char *, bfd_boolean); +extern void lang_default_entry + (const char *); extern void lang_add_target (const char *); extern void lang_add_wild |