This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap 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]

RE: interesting option of stap


Ok, this kernel image looks like it's just been linked wrong.  
The build ID is placed at address 0, somewhere that is probably
not actually loaded into memory by the boot loader at all.

Perhaps this is a build of a kernel that doesn't have the various
changes that were added upstream when --build-id was introduced?  

In recent upstream kernel sources, arch/arm/kernel/vmlinux.lds.S uses
the NOTES macro, which should place the .note.gnu.build-id section
near the end of the image.  This is not really right either, but it
doesn't look like it should result in what your kernel image has.
In other machines' kernel linker scripts, the NOTES macro is placed
such that it appears next to the rodata (RO_DATA macro), which is a
sensible place for it.


Thanks,
Roland


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