Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jan 2009 21:52:21 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 156623 for review
Message-ID:  <200901242152.n0OLqLMs079714@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=156623

Change 156623 by rwatson@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901242152.n0OLqLMs079714>