[forwarded from http://bugs.debian.org/540751]

works with 2.18 and 2.19.1, not with trunk 20090813.

$ cat test.c
int test(void)
{
                return 1;
}

int test_new(void)
{
                return 2;
}

$ cat test.version
TEST_1.0.1 {
        *new*;
};

TEST_1.0 {
        global: *;
};

$ gcc -c -fPIC test.c

trunk:

$ ld -shared -o test.so -version-script test.version test.o
$ objdump -T test.so |grep test
test.so:     file format elf32-i386
00000210 g    DF .text  0000000a  TEST_1.0    test
0000021a g    DF .text  0000000a  TEST_1.0    test_new



with 2.18 and 2.19.1:

# objdump -T test.so |grep test
test.so:     file format elf32-i386
00000210 g    DF .text  0000000a  TEST_1.0    test
0000021a g    DF .text  0000000a  TEST_1.0.1  test_new

-- 
           Summary: [regression] handling of wildcards in version scripts
           Product: binutils
           Version: 2.20 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: doko at debian dot org
                CC: bug-binutils at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=10518

------- 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

Reply via email to