bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/18628] gold IFUNC testsuite failures with GCC 5


From: hjl.tools at gmail dot com
Subject: [Bug gold/18628] gold IFUNC testsuite failures with GCC 5
Date: Mon, 13 Jul 2015 20:04:24 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=18628

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |2.26
            Summary|gold testsuite failures     |gold IFUNC testsuite
                   |with GCC 5                  |failures with GCC 5

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
I opened PR 18663 to track:

FAIL: script_test_1
FAIL: script_test_11

The IFUNC test issue is

address@hidden pr18628]$ readelf -r ifuncmod1.so

Relocation section '.rela.dyn' at offset 0x390 contains 7 entries:
  Offset          Info           Type           Sym. Value    Sym. Name +
Addend
000000001828  000100000006 R_X86_64_GLOB_DAT foo()            foo + 0
000000001838  000200000006 R_X86_64_GLOB_DAT foo_hidden()     foo_hidden + 0
000000001848  000300000006 R_X86_64_GLOB_DAT foo_protected()  foo_protected + 0
000000001818  000400000006 R_X86_64_GLOB_DAT 0000000000001880 global + 0
000000001820  000600000006 R_X86_64_GLOB_DAT 0000000000000000 ret_foo + 0
000000001830  000800000006 R_X86_64_GLOB_DAT 0000000000000000 ret_foo_hidden +
0
000000001840  000a00000006 R_X86_64_GLOB_DAT 0000000000000000 ret_foo_protected
+ 0

Relocation section '.rela.plt' at offset 0x438 contains 3 entries:
  Offset          Info           Type           Sym. Value    Sym. Name +
Addend
000000001868  000100000007 R_X86_64_JUMP_SLO foo()            foo + 0
000000001870  000000000025 R_X86_64_IRELATIV                    520
000000001878  000000000025 R_X86_64_IRELATIV                    550
address@hidden pr18628]$ readelf -s ifuncmod1.so | grep global
     4: 0000000000001880     4 OBJECT  GLOBAL PROTECTED   12 global
    10: 0000000000001880     4 OBJECT  GLOBAL PROTECTED   12 global
address@hidden pr18628]$ 

GCC 5 will generate relocation for protected symbol:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65248

It is undefined to access protected symbol in IFUNC selector function
inside a DSO.

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