From ac69cbc672a0702152d34bac2da436dcee2e5346 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Fri, 11 Jan 2008 09:11:18 +0000 Subject: ld: 2008-01-11 Tristan Gingold Eric Botcazou * ldlang.c (lang_end): Warns if the entry point is not found when --gc-sections. Emit an error if no root is specified when --gc-sections -r. * ld.texinfo (Options): Document that --gc-sections is compatible with -r and -q. * ldmain.c (main): Do not error out if -r and --gc-sections. * scripttempl/elf.sc: Emit ENTRY command only if relocating. ld/testsuite: 2008-01-11 Tristan Gingold * lib/ld-lib.exp (check_gc_sections_available): Now available on VxWorks. * ld-gc: New directory for testing --gc-sections. * ld-gc/gc.c: New file. * ld-gc/gc.exp: New file. * ld-gc/noent.s: New file. * ld-gc/noent.d: New file. --- ld/testsuite/lib/ld-lib.exp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'ld/testsuite/lib/ld-lib.exp') diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index f326478..4e8903c 100644 --- a/ld/testsuite/lib/ld-lib.exp +++ b/ld/testsuite/lib/ld-lib.exp @@ -1559,14 +1559,6 @@ proc check_gc_sections_available { } { return 0 } - # VxWorks kernel modules are relocatable objects linked with -r, - # while RTP executables are linked with -q (--emit-relocs). - # Both of these options are incompatible with --gc-sections. - if { [istarget *-*-vxworks*] } { - set gc_sections_available_saved 0 - return 0 - } - # Check if the ld used by gcc supports --gc-sections. set ld_output [remote_exec host $ld "--help"] if { [ string first "--gc-sections" $ld_output ] >= 0 } { -- cgit v1.1