PERFORCE change 156623 for review

Robert Watson rwatson at FreeBSD.org
Sat Jan 24 13:52:22 PST 2009


http://perforce.freebsd.org/chv.cgi?CH=156623

Change 156623 by rwatson at rwatson_freebsd_capabilities on 2009/01/24 21:52:09

	Fix a bug in the base FreeBSD rtld Makefile -- linker arguments to gcc
	must be escaped with -Wl,.  Due to good luck, this worked: rtld_start.S
	was the first SRCS entry, and .rtld_start was the first symbol in that
	file.  Wee.

Affected files ...

.. //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf/Makefile#3 edit

Differences ...

==== //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf/Makefile#3 (text+ko) ====

@@ -12,7 +12,7 @@
 CSTD?=		gnu99
 CFLAGS+=	-Wall -DFREEBSD_ELF -DIN_RTLD
 CFLAGS+=	-I${.CURDIR}/${MACHINE_ARCH} -I${.CURDIR}
-LDFLAGS+=	-nostdlib -e .rtld_start
+LDFLAGS+=	-nostdlib -Wl,-e,.rtld_start
 INSTALLFLAGS=	-C -b
 PRECIOUSPROG=
 BINDIR=		/libexec


More information about the p4-projects mailing list