Question on objdump option --adjust-vma
Jens Remus
jremus@linux.ibm.com
Tue May 20 08:29:59 GMT 2025
On 20.05.2025 06:39, Fangrui Song wrote:
> On Sun, May 18, 2025 at 2:04 AM Jan Beulich <jbeulich@suse.com> wrote:
>> On 16.05.2025 16:51, Jens Remus wrote:
>>> A colleague of mine tried to use objdump option --adjust-vma to obtain a
>>> disassembly of the s390 Linux Kernel vmlinux adjusted by KASLR offset
>>> for debugging purposes. On s390 the Linux Kernel is compiled as PIC
>>> (-fPIC) and linked as PDE (-no-pie) and relocates itself using
>>> information extracted from the use of --emit-relocs.
>> Btw. LLVM objdump behaves even differently from Binutils objdump, which
>> seems broken to me (disassembly of PC-relative instructions does not
>> respect the adjusted section address):
>
> I am fixing this SystemZInstPrinter issue in
> https://github.com/llvm/llvm-project/pull/140471
Thanks a lot!
Regards,
Jens
--
Jens Remus
Linux on Z Development (D3303)
+49-7031-16-1128 Office
jremus@de.ibm.com
IBM
IBM Deutschland Research & Development GmbH; Vorsitzender des Aufsichtsrats: Wolfgang Wendt; Geschäftsführung: David Faller; Sitz der Gesellschaft: Böblingen; Registergericht: Amtsgericht Stuttgart, HRB 243294
IBM Data Privacy Statement: https://www.ibm.com/privacy/
More information about the Binutils
mailing list