My attempt to buildkernel via devel/binutils@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@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)

_______________________________________________
freebsd-toolchain@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "freebsd-toolchain-unsubscr...@freebsd.org"

Reply via email to