Subject: lib/384: How about adding -x to the shared library build rule?
To: None <gnats-admin>
From: None <thomas@mathematik.uni-Bremen.de>
List: netbsd-bugs
Date: 08/02/1994 21:35:02
>Number: 384
>Category: lib
>Synopsis: How about adding -x to the shared library build rule?
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin (Library Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Aug 2 21:35:01 1994
>Originator: Thomas Eberhardt
>Organization:
CeVis, University of Bremen, Germany
>Release:
>Environment:
System: NetBSD ed209 1.0_BETA NetBSD 1.0_BETA (ED209) #0: Tue Aug 2 21:03:55 MET DST 1994 thomas@ed209:/usr/src/sys/arch/i386/compile/ED209 i386
Machine: i386
>Description:
ld leaves a lot of local symbol information (things as
"bt_open.so.LC1") in the shared libraries that I think isn't needed
anymore after the shared library is built. Since the PIC object files
are already processed with "-x" after compiling, how about also adding
a "-x" to the shared library build rule in bsd.lib.mk?
I'm running with all libraries built in this way for several months
now.
>How-To-Repeat:
>Fix:
*** ./share/mk/bsd.lib.mk- Thu Jul 7 10:22:09 1994
--- ./share/mk/bsd.lib.mk Sun Jul 17 18:22:30 1994
***************
*** 109,115 ****
lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: lib${LIB}_pic.a ${DPADD}
@echo building shared ${LIB} library \(version ${SHLIB_MAJOR}.${SHLIB_MINOR}\)
@rm -f lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
! $(LD) -Bshareable -Bforcearchive \
-o lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} lib${LIB}_pic.a ${LDADD}
llib-l${LIB}.ln: ${SRCS}
--- 109,115 ----
lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: lib${LIB}_pic.a ${DPADD}
@echo building shared ${LIB} library \(version ${SHLIB_MAJOR}.${SHLIB_MINOR}\)
@rm -f lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
! $(LD) -x -Bshareable -Bforcearchive \
-o lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} lib${LIB}_pic.a ${LDADD}
llib-l${LIB}.ln: ${SRCS}
>Audit-Trail:
>Unformatted:
------------------------------------------------------------------------------