diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2007-03-29 17:16:05 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2007-03-29 17:16:05 +0000 |
commit | bcb674cff702e0b46719839a0af4e1ab1619918c (patch) | |
tree | f8ffc8cc3eb4ec3eb78ced88fd498a47ed48b42e /ld/testsuite/ld-libs | |
parent | 436868fbdf0d04a677a805ed751ad8a042ef63dd (diff) | |
download | gdb-bcb674cff702e0b46719839a0af4e1ab1619918c.zip gdb-bcb674cff702e0b46719839a0af4e1ab1619918c.tar.gz gdb-bcb674cff702e0b46719839a0af4e1ab1619918c.tar.bz2 |
ld/
200x-xx-xx Richard Sandiford <richard@codesourcery.com>
Daniel Jacobowitz <dan@codesourcery.com>
* NEWS: Mention -l:foo.
* ld.texinfo: Document it.
* ldlang.c (new_afile): If a lang_input_file_is_l_enum
entry as a name beginning with a coloh, convert it to a
lang_input_file_is_search_file_enum entry without the colon.
ld/testsuite/
* ld-libs/lib-1.s, ld-libs/lib-2.s, ld-libs/lib-2.d,
* ld-libs/libs.exp: New files.
Diffstat (limited to 'ld/testsuite/ld-libs')
-rw-r--r-- | ld/testsuite/ld-libs/lib-1.s | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-libs/lib-2.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-libs/lib-2.s | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-libs/libs.exp | 9 |
4 files changed, 17 insertions, 0 deletions
diff --git a/ld/testsuite/ld-libs/lib-1.s b/ld/testsuite/ld-libs/lib-1.s new file mode 100644 index 0000000..7cc5e1d --- /dev/null +++ b/ld/testsuite/ld-libs/lib-1.s @@ -0,0 +1,2 @@ + .globl foo + .set foo,0x2000 diff --git a/ld/testsuite/ld-libs/lib-2.d b/ld/testsuite/ld-libs/lib-2.d new file mode 100644 index 0000000..b055417 --- /dev/null +++ b/ld/testsuite/ld-libs/lib-2.d @@ -0,0 +1,4 @@ +#... +0+1000 A bar +0+2000 A foo +#pass diff --git a/ld/testsuite/ld-libs/lib-2.s b/ld/testsuite/ld-libs/lib-2.s new file mode 100644 index 0000000..af749d3 --- /dev/null +++ b/ld/testsuite/ld-libs/lib-2.s @@ -0,0 +1,2 @@ + .globl bar + .set bar,0x1000 diff --git a/ld/testsuite/ld-libs/libs.exp b/ld/testsuite/ld-libs/libs.exp new file mode 100644 index 0000000..8609d65 --- /dev/null +++ b/ld/testsuite/ld-libs/libs.exp @@ -0,0 +1,9 @@ +file mkdir tmpdir/libtmp + +# Check that -l: works. The first "test" just creates an object file +# for the second one. +run_ld_link_tests { + {"-l: test (preparation)" "-r" "" {lib-1.s} {} "libtmp/anobject"} + {"-l: test" "-r -Ltmpdir/libtmp -l:anobject" "" {lib-2.s} + {{nm -C lib-2.d}} "lib-2"} +} |