32-bit powerpc kernel builds (head -r356187): old ld (works) vs. devel/binutils at powerpc based (fails to boot): DYNAMIC vs. EXEC_P
Mark Millard
marklmi at yahoo.com
Tue Dec 31 22:52:12 UTC 2019
My attempt to buildkernel via devel/binutils at powerpc
produces a kernel that gets a very early crash.
Looking at the normal and alternate kernels a little
shows. . .
Old ld (and such):
/boot/kernel/kernel: file format elf32-powerpc-freebsd
/boot/kernel/kernel
architecture: powerpc:common, flags 0x00000150:
HAS_SYMS, DYNAMIC, D_PAGED
start address 0x001001e0
. . .
00e7a034 l O *ABS* 00000000 .hidden _DYNAMIC
Produced via (from kernel.full.meta):
CMD @ld -m elf32ppc_fbsd -Bdynamic -T /usr/src/sys/conf/ldscript.powerpc --secure-plt -pie --no-warn-mismatch --warn-common --export-dynamic --dynamic-linker /red/herring -X -o kernel.full locore.o . . .
devel/binutils at powerpc based:
/boot/kerbad/kernel: file format elf32-powerpc-freebsd
/boot/kerbad/kernel
architecture: powerpc:common, flags 0x00000112:
EXEC_P, HAS_SYMS, D_PAGED
start address 0x00100200
00e7a034 l O .dynamic 00000000 _DYNAMIC
Produced via (from kernel.full.meta):
CMD @/usr/local/powerpc-unknown-freebsd13.0/bin/ld -m elf32ppc_fbsd -Bdynamic -T /usr/src/sys/conf/ldscript.powerpc --secure-plt --build-id=sha1 -pie --no-warn-mismatch --warn-common --export-dynamic
--dynamic-linker /red/herring -X -o kernel.full locore.o . . .
===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)
More information about the freebsd-ppc
mailing list