From bcb674cff702e0b46719839a0af4e1ab1619918c Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Thu, 29 Mar 2007 17:16:05 +0000 Subject: ld/ 200x-xx-xx Richard Sandiford Daniel Jacobowitz * 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. --- ld/testsuite/ChangeLog | 5 +++++ ld/testsuite/ld-libs/lib-1.s | 2 ++ ld/testsuite/ld-libs/lib-2.d | 4 ++++ ld/testsuite/ld-libs/lib-2.s | 2 ++ ld/testsuite/ld-libs/libs.exp | 9 +++++++++ 5 files changed, 22 insertions(+) create mode 100644 ld/testsuite/ld-libs/lib-1.s create mode 100644 ld/testsuite/ld-libs/lib-2.d create mode 100644 ld/testsuite/ld-libs/lib-2.s create mode 100644 ld/testsuite/ld-libs/libs.exp (limited to 'ld/testsuite') diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index b57388a..0893e8e 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-03-29 Richard Sandiford + + * ld-libs/lib-1.s, ld-libs/lib-2.s, ld-libs/lib-2.d, + * ld-libs/libs.exp: New files. + 2007-03-28 Richard Sandiford * ld-vxworks/rpath-1.s, ld-vxworks/rpath-1.d, 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"} +} -- cgit v1.1