Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Apr 2015 13:35:01 -0700
From:      Mark Millard <markmi@dsl-only.net>
To:        Warner Losh <imp@bsdimp.com>
Cc:        freebsd-toolchain@freebsd.org, FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>
Subject:   Re: Shorter version: -m elf32ppc_fbsd (and elf_i386_fbsd ?) vs. -Wl, -m, elf32ppc_fbsd problems (11.0-CURRENT and 10.1-STABLE)
Message-ID:  <E0FD1D7D-D7B3-4B60-AC5C-61FDDCB23129@dsl-only.net>
In-Reply-To: <DB0EEE01-8775-41C4-9215-95953EDC8E76@dsl-only.net>
References:  <0D8F0A9A-593E-4FEE-8F01-20799DE946B2@dsl-only.net> <E0A6C671-A4FF-4EE9-B260-1EF615ECA62E@bsdimp.com> <7049E178-9FC8-4590-95AD-F80A2BBC3F01@dsl-only.net> <B6CA80BE-721E-415D-A87A-6AD7ED69235D@dsl-only.net> <DB0EEE01-8775-41C4-9215-95953EDC8E76@dsl-only.net>

next in thread | previous in thread | raw e-mail | index | archive | help
[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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- sys/boot/ofw/Makefile.inc	(revision 281630)
+++ sys/boot/ofw/Makefile.inc	(working copy)
@@ -2,7 +2,7 @@
=20
 .if ${MACHINE_ARCH} =3D=3D "powerpc64"
 CFLAGS+=3D	-m32 -mcpu=3Dpowerpc
-LDFLAGS+=3D	-m elf32ppc_fbsd
+LDFLAGS+=3D	-Wl,-m -Wl,elf32ppc_fbsd
 .endif
=20
 .include "../Makefile.inc"
Index: sys/boot/powerpc/Makefile.inc
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- sys/boot/powerpc/Makefile.inc	(revision 281630)
+++ sys/boot/powerpc/Makefile.inc	(working copy)
@@ -2,7 +2,7 @@
=20
 .if ${MACHINE_ARCH} =3D=3D "powerpc64"
 CFLAGS+=3D	-m32 -mcpu=3Dpowerpc
-LDFLAGS+=3D	-m elf32ppc_fbsd
+LDFLAGS+=3D	-Wl,-m -Wl,elf32ppc_fbsd
 .endif
=20
 .include "../Makefile.inc"
Index: sys/boot/uboot/Makefile.inc
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- sys/boot/uboot/Makefile.inc	(revision 281630)
+++ sys/boot/uboot/Makefile.inc	(working copy)
@@ -2,7 +2,7 @@
=20
 .if ${MACHINE_ARCH} =3D=3D "powerpc64"
 CFLAGS+=3D	-m32 -mcpu=3Dpowerpc
-LDFLAGS+=3D	-m elf32ppc_fbsd
+LDFLAGS+=3D	-Wl,-m -Wl,elf32ppc_fbsd
 .endif
=20
 .include "../Makefile.inc"



=3D=3D=3D
Mark Millard
markmi at dsl-only.net




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E0FD1D7D-D7B3-4B60-AC5C-61FDDCB23129>