This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug symtab/19115] New: Improve add-symbol-file to not rely on sections


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]