bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/12371] New: Garbage collection for STT_GNU_IFUNC symbols in shar


From: hjl.tools at gmail dot com
Subject: [Bug ld/12371] New: Garbage collection for STT_GNU_IFUNC symbols in shared library
Date: Thu, 6 Jan 2011 15:57:15 +0000

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

           Summary: Garbage collection for STT_GNU_IFUNC symbols in shared
                    library
           Product: binutils
           Version: 2.22 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: address@hidden
        ReportedBy: address@hidden
                CC: address@hidden, address@hidden,
                    address@hidden, address@hidden
        Depends on: 11791
              Host: i686-pc-linux-gnu
            Target: i686-pc-linux-gnu
             Build: i686-pc-linux-gnu


+++ This bug was initially created as a clone of Bug #11791 +++

address@hidden intel64-2]$ cat foo.s
        .section .text.foo,"ax",@progbits
        .type foo, @function
foo:
        movl address@hidden(%rip), %eax
        movl ifunc(%rip), %eax
    call address@hidden
    call ifunc
        movl xxx(%rip), %eax
        ret

        .section .text.bar,"ax",@progbits
        .type bar, @function
bar:
        .global bar
        ret

        .section .text.ifunc,"ax",@progbits
        .type ifunc, @gnu_indirect_function
ifunc:
        ret

        .section .data.foo,"aw",@progbits
xxx:
    .quad ifunc 
address@hidden intel64-2]$ make LD=ld
as  -o foo.o foo.s
ld -shared -e bar --gc-sections -o foo  foo.o
make: *** [foo] Segmentation fault
make: *** Deleting file `foo'

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

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