Browse Source
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.drow-reverse-20070409-branch
9 changed files with 58 additions and 13 deletions
@ -0,0 +1,2 @@ |
|||
.globl foo |
|||
.set foo,0x2000 |
|||
@ -0,0 +1,4 @@ |
|||
#... |
|||
0+1000 A bar |
|||
0+2000 A foo |
|||
#pass |
|||
@ -0,0 +1,2 @@ |
|||
.globl bar |
|||
.set bar,0x1000 |
|||
@ -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"} |
|||
} |
|||
Loading…
Reference in new issue