Register
c[ode]clap»Forums»Show glibc Source
Ryan
11 posts
Show glibc Source
2 weeks, 2 days ago Edited by Ryan on June 30, 2020, 10:40 a.m. Reason: Initial post
I'm on Ubuntu 18.04, codeclap 9.0.1.

I'm trying to view the glibc sources inside of codeclap.

I compile a simple hello world program like so:
1
clang -g -fuse-ld=lld test.c -o test

Following the advice from this stackoverflow postI have performed:
1
sudo apt install libc6-dbg glibc-source; tar xvf /usr/src/glibc2.6.tar.xz

As there is no '.gdbinit' to tell codeclap about this, I still see assembly inside of codeclap. Is there some way to overcome this?

Thanks.
Ryan
11 posts
Show glibc Source
2 weeks, 1 day ago
I have been able to overcome this by compiling glibc from source and using it:
1
2
3
4
5
clang -g -L "${gcc_dir}/lib" \
	-I "${gcc_dir}/include" \
	-Wl,--rpath="${gcc_dir}/lib" \
	-Wl,--dynamic-linker="${gcc_dir}/lib/ld-linux-x86-64.so.2" \
	test.c -o test