[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/21384] New: symbols defined with --dynamic-list missing in outpu
From: |
address@hidden |
Subject: |
[Bug ld/21384] New: symbols defined with --dynamic-list missing in output binary |
Date: |
Thu, 13 Apr 2017 13:23:59 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=21384
Bug ID: 21384
Summary: symbols defined with --dynamic-list missing in output
binary
Product: binutils
Version: 2.29 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: address@hidden
Target Milestone: ---
Since commit "Always descend into output section statements in
lang_do_assignments"
(https://github.com/bminor/binutils-gdb/commit/f02cb058822459ea29a9fdaa928c2623df435908),
symbols defined with --dynamic-list don't appear as dynamic symbols anymore in
the linked ELF binary.
Stripped down test case:
test.ld (the .dtors section is the relevant part, the rest is copied from the
ld manual):
PHDRS
{
headers PT_PHDR PHDRS ;
interp PT_INTERP ;
text PT_LOAD FILEHDR PHDRS ;
data PT_LOAD ;
dynamic PT_DYNAMIC ;
}
SECTIONS
{
. = SIZEOF_HEADERS;
.interp : { *(.interp) } :text :interp
.text : { *(.text) } :text
.rodata : { *(.rodata) } /* defaults to :text */
. = . + 0x1000; /* move to a new page in memory */
.data : { *(.data) } :data
.dynamic : { *(.dynamic) } :data :dynamic
.dtors :
{
_dtors_start = .;
_dtors_end = .;
}
}
----------
test.dl (dynamic list):
{
_dtors_start;
_dtors_end;
};
----------
test commands:
$ as /dev/null -o test.o
$ ld -T test.ld --dynamic-list test.dl -o test test.o
$ objdump -T test
output before the mentioned commit:
test: file format elf64-x86-64
DYNAMIC SYMBOL TABLE:
00000000000012a8 g D .dynamic 0000000000000000 _dtors_end
00000000000012a8 g D .dynamic 0000000000000000 _dtors_start
output with the current master branch:
test: file format elf64-x86-64
DYNAMIC SYMBOL TABLE:
no symbols
--
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/21384] New: symbols defined with --dynamic-list missing in output binary,
address@hidden <=