PLT Problems in uBoot on MCF548x
Alan Modra
amodra@gmail.com
Wed Jul 31 00:03:33 GMT 2024
On Tue, Jul 30, 2024 at 12:28:13PM -0700, Peter LaDow wrote:
> 68k-linux-ld.bfd -n -pie -z noexecstack --no-warn-rwx-segments
> --gc-sections -pie -Bstatic --no-dynamic-linker -z notext
> --build-id=none -Ttext 0x0 -o u-boot -T u-boot.lds
> arch/m68k/cpu/mcf548x/start.o --whole-archive (... snipped for
> brevity) --no-whole-archive arch/m68k/lib/lib.a -Map u-boot.map
Have you examined u-boot using readelf to see whether there are any
RELA type sections? If so, do you see a relocation against the
relevant .got.plt entry? Also, are these relocations applied early
enough, ie. before the board_init.c memset call?
--
Alan Modra
More information about the Binutils
mailing list