This is the mail archive of the gdb@sources.redhat.com 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]

Re: RFC: ELF prelinker - 0.1.1



> Anyway, from my initial look at DWARF2, DWARF2 relocation will be fairly
> easy as that format is nicely designed. Nothing in LEB128 format needs to be
> relocated, essentially:
> - nothing in .debug_abbrev
> - don't have to care about .eh_frame, since it is SHF_ALLOC and has its REL{,A} section
> - no addresses which need relocation, can be in LEB128 format (how would
>   static linker work in that case?), there is nothing like R_IA64_ULEB128,
>   is it? From my current brief look at DWARF2, DW_FORM_addr format
>   attributes will have to be adjusted, plus DW_OP_addr's, will need to check
>   some more if I haven't missed something
> - will need to figure out what to do about the rest of .debug_* sections -
>   but the prelinker will certainly just bail out if it finds a debug section
>   or its format which it does not recognize.

OK, you'll need to look at (at least) .debug_line and .debug_info.

Good luck !

-- Jim 

James Cownie	<jcownie@etnus.com>
Etnus, LLC.     +44 117 9071438
http://www.etnus.com


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