This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/19115] New: Improve add-symbol-file to not rely on sections
- From: "celelibi at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sat, 10 Oct 2015 04:57:19 +0000
- Subject: [Bug symtab/19115] New: Improve add-symbol-file to not rely on sections
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=19115
Bug ID: 19115
Summary: Improve add-symbol-file to not rely on sections
Product: gdb
Version: 7.10
Status: NEW
Severity: enhancement
Priority: P2
Component: symtab
Assignee: unassigned at sourceware dot org
Reporter: celelibi at gmail dot com
Target Milestone: ---
Hello there,
It looks like the command add-symbol-file will only relocate the symbols based
on the sections.
However the sections are usually not used in an executable ELF file (type
ET_EXEC or ET_DYN). Only the program headers are used to load the file segments
at the right address. Thus all the sections within the same segment are forced
to have the same offset.
Hence I think a more useful command could ask for a single offset and pretend
all the segments have been shifted by this offset or take several of them for
each program header with type PT_LOAD.
--
You are receiving this mail because:
You are on the CC list for the bug.