Paul Rogers wrote: >> The __stack_chk_guard which is only seen by grep in gcc, must have >> gotten built in at some earlier step or possibly bled in from the > > How far back do you suppose? Stage 2 pass 1 or Stage 1 pass 2? I can > quite confidently rip either out and replace it with my scripts. > (UPMPMG; use package management, package management good) > > I don't suppose you have any idea what kind of parameter error might > cause gcc's make to include it? /tools/lib does have libssp. I suppose > that's indicative, eh? (Can't give you a listing at the moment, I'm on > a different twinned box also running 6.1. But I can query my package > management on the other box to see which step added libssp.)
In my reference build I have: -rw-r--r-- 1 root root 26098 Apr 15 18:09 /mnt/lfs/tools/lib/libssp.a -rwxr-xr-x 1 root root 925 Apr 15 16:37 /mnt/lfs/tools/lib/libssp.la lrwxrwxrwx 1 root root 15 Apr 15 16:37 /mnt/lfs/tools/lib/libssp.so -> libssp.so.0.0.0 lrwxrwxrwx 1 root root 15 Apr 15 16:37 /mnt/lfs/tools/lib/libssp.so.0 -> libssp.so.0.0.0 -rwxr-xr-x 1 root root 12721 Apr 15 18:09 /mnt/lfs/tools/lib/libssp.so.0.0.0 The contenst of libssp.la are: $ cat /mnt/lfs/tools/lib/libssp.la # libssp.la - a libtool library file # Generated by libtool (GNU libtool 1.3134 2009-11-29) 2.2.7a # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='libssp.so.0' # Names of this library. library_names='libssp.so.0.0.0 libssp.so.0 libssp.so' # The name of the static archive. old_library='libssp.a' # Linker flags that can not go in dependency_libs. inherited_linker_flags='' # Libraries that this one depends upon. dependency_libs='' # Names of additional weak libraries provided by this library weak_library_names='' # Version information for libssp. current=0 age=0 revision=0 # Is this an already installed library? installed=yes # Should we warn about portability when linking against -modules? shouldnotlink=no # Files to dlopen/dlpreopen dlopen='' dlpreopen='' # Directory that this library needs to be installed in: libdir='/tools/lib' --------------- $ nm -a /mnt/lfs/tools/lib/libssp.so.0.0.0|grep stack 0000000000001000 T __stack_chk_fail 0000000000001040 t __stack_chk_fail_local 0000000000201d60 B __stack_chk_guard B is the uninitialized data section (known as BSS). -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
