From 88bd15396002102beedf49c87adee7b16c2bb409 Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Tue, 20 Sep 2016 15:25:55 +0100 Subject: ld: Create test object files based on source file name When creating object files during testing, base the name of the object file on the name of the source file, rather than using dump0.o, dump1.o, etc. There's a few places where we have multiple source files with the same name but in different directories, in these cases, even after this change, we still add a numerical suffix to make the object file names unique. So if we have 'foo/src.s' and 'bar/src.s', we will create object files 'src.o' and 'src1.o'. Update the few tests that hard code the object file name into the expected test results. ld/ChangeLog: * testsuite/lib/ld-lib.exp (run_dump_test): Use object file names based on the original source file name. * testsuite/ld-discard/extern.d: Update object file names. * testsuite/ld-discard/start.d: Likewise. * testsuite/ld-discard/static.d: Likewise. * testsuite/ld-elf/orphan-8.map: Likewise. --- ld/ChangeLog | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ld/ChangeLog') diff --git a/ld/ChangeLog b/ld/ChangeLog index 2d3bf34..3098b4c 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,14 @@ 2016-11-04 Andrew Burgess + * testsuite/lib/ld-lib.exp (run_dump_test): Use object file names + based on the original source file name. + * testsuite/ld-discard/extern.d: Update object file names. + * testsuite/ld-discard/start.d: Likewise. + * testsuite/ld-discard/static.d: Likewise. + * testsuite/ld-elf/orphan-8.map: Likewise. + +2016-11-04 Andrew Burgess + * testsuite/lib/ld-lib.exp (check_shared_lib_support): Add xc16x-*-elf to the list of targets that don't support -shared. -- cgit v1.1