[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/24192] New: ld doesn't properly process relocations to deduplica
From: |
marc at groundctl dot com |
Subject: |
[Bug ld/24192] New: ld doesn't properly process relocations to deduplicated code in PE files |
Date: |
Thu, 07 Feb 2019 15:00:56 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=24192
Bug ID: 24192
Summary: ld doesn't properly process relocations to
deduplicated code in PE files
Product: binutils
Version: 2.32
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: marc at groundctl dot com
Target Milestone: ---
$ cat x.cpp
class a {
virtual void c();
};
inline void a::c(){}
$ i686-w64-mingw32-g++ -g -c x.cpp -fno-rtti -o x.o
$ objdump --dwarf=decodedline -r -j.debug_line x.o
x.o: file format pe-i386
Contents of the .debug_line section:
CU: x.cpp:
File name Line number Starting address View
x.cpp 4 0
x.cpp 4 0x9
x.cpp 4 0xc
RELOCATION RECORDS FOR [.debug_line]:
OFFSET TYPE VALUE
0000002b dir32 .text$_ZN1a1cEv
$ i686-w64-mingw32-ld x.o x.o -o x.exe
$ objdump --dwarf=decodedline -r -j.debug_line x.exe
x.exe: file format pei-i386
Contents of the .debug_line section:
CU: x.cpp:
File name Line number Starting address View
x.cpp 4 0x401000
x.cpp 4 0x401009
x.cpp 4 0x40100c
CU: x.cpp:
File name Line number Starting address View
x.cpp 4 0
x.cpp 4 0x9
x.cpp 4 0xc
This has the same symptoms as bug 24191. Compiling with -fno-rtti is not
necessary to reproduce this, it just makes the link line simpler and the
objdump output shorter. This also happens when ld is run indirectly via g++.
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug ld/24192] New: ld doesn't properly process relocations to deduplicated code in PE files,
marc at groundctl dot com <=