Index: ld/testsuite/ld-x86-64/split-by-file.rd =================================================================== RCS file: ld/testsuite/ld-x86-64/split-by-file.rd diff -N ld/testsuite/ld-x86-64/split-by-file.rd *** /dev/null 1 Jan 1970 00:00:00 -0000 --- ld/testsuite/ld-x86-64/split-by-file.rd 18 Aug 2010 13:45:36 -0000 *************** *** 0 **** --- 1,17 ---- + There are 9 section headers, starting at offset 0x80: + + Section Headers: + \[Nr\] Name Type Address Off Size ES Flg Lk Inf Al + \[ 0\] NULL 0000000000000000 000000 000000 00 0 0 0 + \[ 1\] .text PROGBITS 0000000000000000 000040 000000 00 AX 0 0 4 + \[ 2\] .foo PROGBITS 0000000000000000 000040 000003 00 AXl 0 0 1 + \[ 3\] .data PROGBITS 0000000000000000 000044 000000 00 WA 0 0 4 + \[ 4\] .bss NOBITS 0000000000000000 000044 000000 00 WA 0 0 4 + \[ 5\] .foo.0 PROGBITS 0000000000000003 000044 000003 00 AXl 0 0 1 + \[ 6\] .shstrtab STRTAB 0000000000000000 000047 000038 00 0 0 1 + \[ 7\] .symtab SYMTAB 0000000000000000 0002c0 0000d8 18 8 6 8 + \[ 8\] .strtab STRTAB 0000000000000000 000398 000016 00 0 0 1 + Key to Flags: + W \(write\), A \(alloc\), X \(execute\), M \(merge\), S \(strings\) + I \(info\), L \(link order\), G \(group\), T \(TLS\), E \(exclude\), x \(unknown\) + O \(extra OS processing required\) o \(OS specific\), p \(processor specific\) Index: ld/testsuite/ld-x86-64/split-by-file1.s =================================================================== RCS file: ld/testsuite/ld-x86-64/split-by-file1.s diff -N ld/testsuite/ld-x86-64/split-by-file1.s *** /dev/null 1 Jan 1970 00:00:00 -0000 --- ld/testsuite/ld-x86-64/split-by-file1.s 18 Aug 2010 13:45:36 -0000 *************** *** 0 **** --- 1,7 ---- + .section ".foo", "axl" + .global label1 + label1: + nop + nop + nop + Index: ld/testsuite/ld-x86-64/split-by-file2.s =================================================================== RCS file: ld/testsuite/ld-x86-64/split-by-file2.s diff -N ld/testsuite/ld-x86-64/split-by-file2.s *** /dev/null 1 Jan 1970 00:00:00 -0000 --- ld/testsuite/ld-x86-64/split-by-file2.s 18 Aug 2010 13:45:36 -0000 *************** *** 0 **** --- 1,6 ---- + .section ".foo", "axl" + .global label2 + label2: + nop + nop + nop Index: ld/testsuite/ld-x86-64/x86-64.exp =================================================================== RCS file: /cvs/src/src/ld/testsuite/ld-x86-64/x86-64.exp,v retrieving revision 1.19 diff -c -8 -p -r1.19 x86-64.exp *** ld/testsuite/ld-x86-64/x86-64.exp 13 Aug 2010 20:50:27 -0000 1.19 --- ld/testsuite/ld-x86-64/x86-64.exp 18 Aug 2010 13:45:36 -0000 *************** set x86_64tests { *** 70,85 **** --- 70,88 ---- "--64" {tlsgd1.s} {{objdump -dwr tlsgd1.dd}} "tlsgd1"} {"TLS LD->LE transition" "-melf_x86_64" "--64" {tlsld1.s} {{objdump -dwr tlsld1.dd}} "tlsld1"} {"TLS IE->LE transition" "-melf_x86_64" "--64" {tlsie1.s} {{objdump -dwr tlsie1.dd}} "tlsie1"} + {"Split by file with 'l' flag on section." "-split-by-file -r" + "--64" {split-by-file1.s split-by-file2.s} + {{readelf -SW split-by-file.rd}} "split-by-file.o"} } run_ld_link_tests $x86_64tests run_dump_test "abs" run_dump_test "abs-l1om" run_dump_test "pcrel8" run_dump_test "pcrel16"