summaryrefslogtreecommitdiffstats
path: root/ld/ldlang.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-05-15 14:22:36 +0000
committerAlan Modra <amodra@gmail.com>2009-05-15 14:22:36 +0000
commitd127ecce68b9052033148696008a8a905f661301 (patch)
treec4b31acc130ee14648913fb99d0a280de36dcb3c /ld/ldlang.h
parent0643c12ee1f4e258e1efea52d46b4c4e67fc8f78 (diff)
downloadppe42-binutils-d127ecce68b9052033148696008a8a905f661301.tar.gz
ppe42-binutils-d127ecce68b9052033148696008a8a905f661301.zip
ld/
* ldlang.c (lang_output_section_statement_lookup): Add function comment. Make "name" non-const. Ensure duplicate entries use the same string, allowing simple comparison in hash bucket loop. Tweak constraint check. (next_matching_output_section_statement): New function. * ldlang.h (lang_output_section_statement_lookup): Update. (next_matching_output_section_statement): Declare. * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't combine orphan sections when input sections flags differ in alloc or load. * emultempl/pe.em: Formatting throughout. (gld${EMULATION_NAME}_place_orphan): As for elf32.em. * emultempl/pep.em: Formatting throughout. (gld${EMULATION_NAME}_place_orphan): As for elf32.em. ld/testsuite/ * ld-elf/orphan3.d, * ld-elf/orphan3a.s, * ld-elf/orphan3b.s, * ld-elf/orphan3c.s, * ld-elf/orphan3d.s, * ld-elf/orphan3e.s, * ld-elf/orphan3f.s: New test. * ld-pe/orphan.d, * ld-pe/orphana.s, * ld-pe/orphanb.s, * ld-pe/orphand.s, * ld-pe/orphane.s: New test. * ld-pe/direct.exp: Use is_pecoff_format. * ld-pe/longsecn.exp: Delete. * ld-pe/pe.exp: Run new test and longsecn tests.
Diffstat (limited to 'ld/ldlang.h')
-rw-r--r--ld/ldlang.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/ldlang.h b/ld/ldlang.h
index 0b57b857ba..f9a1143353 100644
--- a/ld/ldlang.h
+++ b/ld/ldlang.h
@@ -550,7 +550,9 @@ extern lang_input_statement_type *lang_add_input_file
extern void lang_add_keepsyms_file
(const char *);
extern lang_output_section_statement_type *lang_output_section_statement_lookup
- (const char *const, int, bfd_boolean);
+ (const char *, int, bfd_boolean);
+extern lang_output_section_statement_type *next_matching_output_section_statement
+ (lang_output_section_statement_type *, int);
extern void ldlang_add_undef
(const char *const);
extern void lang_add_output_format
OpenPOWER on IntegriCloud