This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: linker errors when compiling and linking with a new glibc


I don't think that debugging will help. When I run /bin/ls I get a segmentation fault as well, but when I run /bin/cat I don't get the segmentation fault and it works as expected. I think I can't just include the original "/lib/libgcc_s.so.1" that is installed in my system into my new glibc tree. I'm not an expert but I think I have to get one that is built with my own glibc, but I dont know how. Does anybody know?

Thanks,

Daniel  



----- Original Message ----
From: Ryan Arnold <ryan.arnold@gmail.com>
To: Daniel De La Zerda <danieldelazerda@gmail.com>
Cc: Carlos O'Donell <carlos@systemhalted.org>; libc-help@sourceware.org; pasky@suse.cz
Sent: Thursday, March 19, 2009 10:05:37 PM
Subject: Re: linker errors when compiling and linking with a new glibc

On Thu, Mar 19, 2009 at 3:14 PM, Daniel De La Zerda
<ddelazerda007@yahoo.com> wrote:
>
> OK, now the error went away =) but I get a segmentation fault =( ... to use gdb with my executable, do I need to do anything special - like tell it where glibc is etc?
> If I do "gdb my-exe", then "run", I get that there was an error loading shared libraries: libdl.so.2: cannot open shared obj file: no such file or dir.
>
> Thanks for all the help, I really appreciate it.
>
> Daniel

Hi Daniel, I wrote wrote a tutorial on this:

http://sources.redhat.com/glibc/wiki/Debugging/Loader_Debugging#Debugging_With_an_Alternate_Loader

Ryan



      


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]