Date: Tue, 31 Dec 2019 14:52:06 -0800 From: Mark Millard <marklmi@yahoo.com> To: FreeBSD PowerPC ML <freebsd-ppc@freebsd.org> Cc: FreeBSD Toolchain <freebsd-toolchain@freebsd.org> Subject: 32-bit powerpc kernel builds (head -r356187): old ld (works) vs. devel/binutils@powerpc based (fails to boot): DYNAMIC vs. EXEC_P Message-ID: <F5A9F8BE-72EA-41E9-9CDF-8588027D94C8@yahoo.com> References: <F5A9F8BE-72EA-41E9-9CDF-8588027D94C8.ref@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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=3Dsha1 -pie --no-warn-mismatch --warn-common = --export-dynamic --dynamic-linker /red/herring -X -o kernel.full locore.o . . . =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F5A9F8BE-72EA-41E9-9CDF-8588027D94C8>