bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/3009] New: "ld --sort-section xxx" doesn't work with wildcard li


From: hjl at lucon dot org
Subject: [Bug ld/3009] New: "ld --sort-section xxx" doesn't work with wildcard list
Date: 7 Aug 2006 21:20:33 -0000

The --sort-section patch

http://sourceware.org/ml/binutils/2004-10/msg00020.html

doesn't work with wildcard list.

address@hidden sort-2]$ cat sort.t
SECTIONS
{
  .text : { *(.text .text.*) }
  /DISCARD/ : { *(.*) }
}
address@hidden 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
address@hidden 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]