objcopy renaming dynamic symbols
Ian Lance Taylor
ian@wasabisystems.com
Mon Nov 10 16:26:00 GMT 2003
More information about the Binutils mailing list
Mon Nov 10 16:26:00 GMT 2003
- Previous message (by thread): objcopy renaming dynamic symbols
- Next message (by thread): COFF support within binutils?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Vladimir Vassilev <vl_vassilev@yahoo.com> writes: > I am trying to rename symbol names of shared object. > Obviously objcopy only works for static symbols. Are > there any new developments related to this topic. > Otherwise what are the problems with implementing this > feature ... I would like to do it and contribute, but > just give me a hint if you know a reason this cannot > be done so that I don't waste time on research. It's a tough problem, because the dynamic symbol names are loaded into memory. If you increase the length of the name, the result may not fit in the same memory location. That would mean that you would have to find some different loadable memory space for the symbols, you would have to add a new program header for it, and you would have to adjust everything accordingly. Quite a pain. Other than that, you basically just have the change the entry in .dynstr and recompute the hash table in .hash. If you want the debugging information to work correctly, you might have to adjust that as well, though the details would depend upon the type of debugging information being used. Ian
- Previous message (by thread): objcopy renaming dynamic symbols
- Next message (by thread): COFF support within binutils?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list