PowerPC64 future proof kernel toc, revised for lld
Alan Modra
amodra at gmail.com
Wed Mar 10 16:07:22 AEDT 2021
On Wed, Mar 10, 2021 at 03:44:44PM +1100, Alexey Kardashevskiy wrote:
> For my own education, is .got for prom_init.o still generated by ld or gcc?
.got is generated by ld.
> In other words, should "objdump -D -s -j .got" ever dump .got for any .o
> file, like below?
No. "objdump -r prom_init.o | grep GOT" will tell you whether
prom_init.o *may* cause ld to generate .got entries. (Linker
optimisations or --gc-sections might remove the need for those .got
entries.)
> objdump: section '.got' mentioned in a -j option, but not found in any input
> file
Right, expected.
--
Alan Modra
Australia Development Lab, IBM
More information about the Linuxppc-dev
mailing list