diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2017-07-28 13:01:10 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-07-28 13:01:10 +0100 |
commit | 2b94abd48aef2d91bae1c35c8c10ebfb8757247d (patch) | |
tree | 6d1abfbf1470194ed0473dedbc483adee48644e5 /ld/testsuite/ld-scripts/align3.d | |
parent | a808670465869100d4178a572da8a1503d727f3b (diff) | |
download | gdb-2b94abd48aef2d91bae1c35c8c10ebfb8757247d.zip gdb-2b94abd48aef2d91bae1c35c8c10ebfb8757247d.tar.gz gdb-2b94abd48aef2d91bae1c35c8c10ebfb8757247d.tar.bz2 |
Make some improvements to how SORT_* specifiers and EXCLUDE_FILE specifiers are handled in the linker script grammar.
* ldgram.y (ldgram_had_keep): Make static.
(ldgram_vers_current_lang): Likewise.
(filename_spec): New rule.
(input_section_spec_no_keep): Use filename_spec.
(wildcard_maybe_exclude): New rule.
(wildcard_spec): Rename to...
(section_name_spec): ...this.
(section_NAME_list): Rename to...
(section_name_list): ...this.
(section_name_spec): Simplifiy and use wildcard_maybe_exclude.
* ldlang.c (placed_commons): Delete.
(lang_add_wild): No longer set placed_commons.
(print_wild_statement): Use full names for SORT specifiers.
* testsuite/ld-scripts/align.exp: Run new tests.
* testsuite/ld-scripts/align3.d: New file.
* testsuite/ld-scripts/align3.t: New file.
* testsuite/ld-scripts/align4.d: New file.
* testsuite/ld-scripts/align4.t: New file.
* testsuite/ld-scripts/align5.d: New file.
* testsuite/ld-scripts/align5.t: New file.
* testsuite/ld-scripts/exclude-file-5.d: New file.
* testsuite/ld-scripts/exclude-file-5.map: New file.
* testsuite/ld-scripts/exclude-file-5.t: New file.
* testsuite/ld-scripts/exclude-file-6.d: New file.
* testsuite/ld-scripts/exclude-file-6.map: New file.
* testsuite/ld-scripts/exclude-file-6.t: New file.
* NEWS: Mention the changes.
Diffstat (limited to 'ld/testsuite/ld-scripts/align3.d')
-rw-r--r-- | ld/testsuite/ld-scripts/align3.d | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/align3.d b/ld/testsuite/ld-scripts/align3.d new file mode 100644 index 0000000..384d91a --- /dev/null +++ b/ld/testsuite/ld-scripts/align3.d @@ -0,0 +1,3 @@ +# source: align2a.s +# ld: -T align3.t +# error: .*:4: syntax error |