bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/26936] [ld, PIE] ld drops relocation for .text.__x86.get_pc_thun


From: hjl.tools at gmail dot com
Subject: [Bug ld/26936] [ld, PIE] ld drops relocation for .text.__x86.get_pc_thunk.bx
Date: Tue, 24 Nov 2020 14:26:00 +0000

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

--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Tom de Vries from comment #6)
> (In reply to Tom de Vries from comment #0)
> > So, when compiling like this:
> > ...
> > $ gcc -g -fsplit-stack src/gcc/testsuite/gcc.dg/split-1.c -m32
> > ...
> 
> It's not clear to me from comment 2, have you tried this?

I got

[hjl@gnu-cfl-2 tmp]$ file a.out 
a.out: ELF 32-bit LSB pie executable, Intel 80386, version 1 (SYSV),
dynamically linked, interpreter /lib/ld-linux.so.2,
BuildID[sha1]=59ea9d8ac326aacb2ceb44abae5ad442d00e047c, for GNU/Linux 3.2.0,
with debug_info, not stripped
[hjl@gnu-cfl-2 tmp]$ gdb a.out 
GNU gdb (GDB) Fedora 10.1-2.0.fc33
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from a.out...
(gdb) b  __x86.get_pc_thunk.bx
Breakpoint 1 at 0x11b0: file morestack.S, line 636.
(gdb) r
Starting program: /tmp/a.out 
Missing separate debuginfos, use: dnf debuginfo-install
glibc-2.32-2.0.fc33.i686

Breakpoint 1, __x86.get_pc_thunk.bx () at morestack.S:636
Missing separate debuginfos, use: dnf debuginfo-install
libgcc-10.2.1-6.1.fc33.i686
(gdb) 

Does it look OK?

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