Prelinking on ARM with Debug Link

Mark Wielaard mjw@redhat.com
Thu Feb 18 16:21:00 GMT 2016


On Tue, 2016-02-16 at 21:46 +0100, Torsten Polle wrote:
> The target architecture is 32bit ARM. The host architecture is 64bit
> X86. That’s the reason why field .sec_load_offset is initialised with
> a 64bit wide hexadecimal number. But as the field .sec_load_offset is
> defined only as „unsigned long“, the compiler complains. As a work
> around I tried to output decimal number instead for the initialisation
> of .sec_load_offset. I can compile alright. But the resulting
> backtrace calculations shown in my previous example produce strange
> results.

OK, I don't have such a setup, but maybe all that is needed, if we
assume negative values are ok, is to not write sec_load_offset out in
hex, but simply in dec. Could you try the attached patch?

Thanks,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sec_load_offset.patch
Type: text/x-patch
Size: 1247 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/systemtap/attachments/20160218/aa9f84d3/attachment.bin>


More information about the Systemtap mailing list