Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Feb 2023 18:50:25 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: b5d248c0c82c - main - kern: Remove gcc2_compiled stripping
Message-ID:  <202302251850.31PIoPme091718@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=b5d248c0c82ce7fd502d90af3a6e41bfef736216

commit b5d248c0c82ce7fd502d90af3a6e41bfef736216
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-02-25 18:33:22 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-02-25 18:49:25 +0000

    kern: Remove gcc2_compiled stripping
    
    Bruce added stripping of gcc2_compiled and other symbols when he made
    the boot loader load the symbols for the kernel in 1995 (b5d89ca8ade3)
    before the FreeBSD 2.1 release.  This was copied around a bit and
    tweaked over the years, but these symbols aren't produced by clang, nor
    gcc12. The were to support dbx for a.out stabs format. gcc removed them
    with stabs support last year. gcc 2.95.4 in FreeBSD 4.x continued to
    emit these symbols unconditionally (it was missing a test for aout vs
    elf it would appaer). They disappeared entirely with gcc 3.2.4 in 5.x
    for all non a.out builds, and entirely in FreeBSD 6.x which had gcc
    3.2.6.
    
    Sponsored by:           Netflix
    Differential Revision:  https://reviews.freebsd.org/D38764
---
 sys/conf/kern.pre.mk | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk
index e347f9fb9903..ca04e348808d 100644
--- a/sys/conf/kern.pre.mk
+++ b/sys/conf/kern.pre.mk
@@ -339,8 +339,7 @@ SYSTEM_LD_BASECMD= \
 	--no-warn-mismatch --warn-common --export-dynamic \
 	--dynamic-linker /red/herring -X
 SYSTEM_LD= @${SYSTEM_LD_BASECMD} -o ${.TARGET} ${SYSTEM_OBJS} vers.o
-SYSTEM_LD_TAIL= @${OBJCOPY} --strip-symbol gcc2_compiled. ${.TARGET} ; \
-	${SIZE} ${.TARGET} ; chmod 755 ${.TARGET}
+SYSTEM_LD_TAIL= @${SIZE} ${.TARGET} ; chmod 755 ${.TARGET}
 SYSTEM_DEP+= ${LDSCRIPT}
 
 # Calculate path for .m files early, if needed.



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