Shorter version: -m elf32ppc_fbsd (and elf_i386_fbsd ?) vs. -Wl, -m, elf32ppc_fbsd problems (11.0-CURRENT and 10.1-STABLE)
Mark Millard
markmi at dsl-only.net
Sat Apr 18 20:41:45 UTC 2015
[Looks like I'll soon be mostly suspending my FreeBSD explorations for a notable time again. So this completes my notes for the subject and related material. It includes only what I concluded should be changed.]
The following are all appropriate Makefile.inc changes as far as I can tell. The i386 case uses LD_FLAGS instead and is commented indicating that it uses ${LD} directly and does not use ${CC}. So chaining it is not appropriate.
# svnlite diff sys/boot/ofw/Makefile.inc sys/boot/powerpc/Makefile.inc sys/boot/uboot/Makefile.inc
Index: sys/boot/ofw/Makefile.inc
===================================================================
--- sys/boot/ofw/Makefile.inc (revision 281630)
+++ sys/boot/ofw/Makefile.inc (working copy)
@@ -2,7 +2,7 @@
.if ${MACHINE_ARCH} == "powerpc64"
CFLAGS+= -m32 -mcpu=powerpc
-LDFLAGS+= -m elf32ppc_fbsd
+LDFLAGS+= -Wl,-m -Wl,elf32ppc_fbsd
.endif
.include "../Makefile.inc"
Index: sys/boot/powerpc/Makefile.inc
===================================================================
--- sys/boot/powerpc/Makefile.inc (revision 281630)
+++ sys/boot/powerpc/Makefile.inc (working copy)
@@ -2,7 +2,7 @@
.if ${MACHINE_ARCH} == "powerpc64"
CFLAGS+= -m32 -mcpu=powerpc
-LDFLAGS+= -m elf32ppc_fbsd
+LDFLAGS+= -Wl,-m -Wl,elf32ppc_fbsd
.endif
.include "../Makefile.inc"
Index: sys/boot/uboot/Makefile.inc
===================================================================
--- sys/boot/uboot/Makefile.inc (revision 281630)
+++ sys/boot/uboot/Makefile.inc (working copy)
@@ -2,7 +2,7 @@
.if ${MACHINE_ARCH} == "powerpc64"
CFLAGS+= -m32 -mcpu=powerpc
-LDFLAGS+= -m elf32ppc_fbsd
+LDFLAGS+= -Wl,-m -Wl,elf32ppc_fbsd
.endif
.include "../Makefile.inc"
===
Mark Millard
markmi at dsl-only.net
More information about the freebsd-ppc
mailing list