The --sort-section patch http://sourceware.org/ml/binutils/2004-10/msg00020.html
doesn't work with wildcard list. [EMAIL PROTECTED] sort-2]$ cat sort.t SECTIONS { .text : { *(.text .text.*) } /DISCARD/ : { *(.*) } } [EMAIL PROTECTED] sort-2]$ cat x.s .section .text.2 .p2align 3 text2: .long 0 .section .text.3 .p2align 6 text3: .long 0 .section .text.1 .p2align 5 text1: .long 0 .text text: .p2align 4 .long 0 [EMAIL PROTECTED] sort-2]$ make LD=ld as -o x.o x.s ld -o x -T sort.t --sort-section alignment x.o nm -n x 0000000000000000 t text 0000000000000008 t text2 0000000000000040 t text3 0000000000000060 t text1 The problem is in update_wild_statements: + sec = s->wild_statement.section_list; + if (sec != NULL) + { + switch (sec->spec.sorted) It should use a for loop to handle the list. -- Summary: "ld --sort-section xxx" doesn't work with wildcard list Product: binutils Version: 2.18 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: hjl at lucon dot org CC: bug-binutils at gnu dot org http://sourceware.org/bugzilla/show_bug.cgi?id=3009 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils