On Tue, Feb 26, 2008 at 03:02:10PM -0800, Rod Evans wrote: > elfedit(1) is going to let you hang yourself :-). You can change > just about anything, and we've nowhere near the verification that > would come close to cover all that could be changed (damaged).
OK, I get it :) > >I'll go find out how to get libtool to use a mapfile, and how to file a > >bug against it if it can't easily be made to use mapfiles. I spent a > >few minutes this weekend on searching for libtool and mapfile, and not > >finding the answer; I'll spend more time on that this time. > > You can always set LD_OPTIONS=-Mmapfile before calling any makefiles > or build shell scripts and pass additional information to the > underling link-edit that will be called. I tried this, but this broke because SQLite3's build system builds executable build tools. So I could (and tried) making those targets separately, but then I realized that I was encoding too much knowledge of the internals of SQLite3's build system into the SFW makefile and decided that was not good. Or perhaps I could add -z ignore to LD_OPTIONS too (to ignore the symbols listed in the mapfile when building those interim executables). And use a separate target for the one executable that is installed (so it gets the noexecstack mapfile). > >BTW, I rather expect that we'll see a lot more of this as we add more > >and more libtool-using FOSS to SFW. > > Yes. We've both excited and afraid of this :-) Heh. OK, so for now I'll simply punt on symbol reduction. Nico --