------- Comment #13 from dave at hiauly1 dot hia dot nrc dot ca  2006-03-01 
15:48 -------
Subject: Re:  Default path for libgcc_s.sl is build directory

> This is the not supported case (HP-UX 10.20):
> 509 (hiauly1)dave> chatr main|grep libc
>            dynamic   /usr/lib/libc.1

Also,

-bash-2.05b$ ./main
/usr/lib/dld.sl: Can't open shared library: libc.2
/usr/lib/dld.sl: No such file or directory
ABORT instruction (core dumped)

GCC and cc don't enable the dynamic search by default in the 32-bit
runtime.  Thus, there's no way for the dynamic loader to open libc when
the option is supported.

The situations is different in the 64-bit runtime:

-bash-2.05b$ chatr main
main:
         64-bit ELF executable
         shared library dynamic path search:
             LD_LIBRARY_PATH    enabled  first
             SHLIB_PATH         enabled  second
             embedded path      enabled  third  Not Defined
         shared library list:
             libc.2

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26472

Reply via email to