loongson-community / linux-stable

Linux kernel source tree for Loongson
Other
67 stars 21 forks source link

Find Correct Start Address for vmlinux #22

Open JefferyGaoL opened 4 years ago

JefferyGaoL commented 4 years ago

when $LANG shell variable is set to anything like zh_CN.UTF-8, there will be an error when trying to retrieve "start address" from vmlinux by objdump -f vmlinux. New tool has been added to linux kernel 5.4, named elf-entry, which can get the correct "start address" regardless of the $LANG shell variable. I back-ported the elf-entry tool and relevant Makefiles to 4.19.