GNU World Order Linux Cast

gnuWorldOrder_398


Listen Later

**addr2line** , **ar** , **as** , **ld** from the **binutils** package. Here
is an example of the code and commands used for the **as** and **ld** example:
$ cat << EOF >> hello.c
> #include
> int main(void)
> { printf("hello world\n");
> return 0; }
$ cpp hello.c > hello.i
$ gcc -S hello.i
$ as -o hello.o hello.s
$ ld -static -o hello \
-L/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/ \
/usr/lib64/crt1.o /usr/lib64/crti.o hello.o \
/usr/lib64/crtn.o --start-group -lc -lgcc \
-lgcc_eh --end-group
$ ./hello
hello world
$
The library paths are specific to Slackware, but are similar on other
distributions.
shasum -a256=11212a6bc6b308ef10a86770828174bd33d8fd70071477e1cf3b59b965c56da7
...more
View all episodesView all episodes
Download on the App Store

GNU World Order Linux CastBy Klaatu

  • 4.4
  • 4.4
  • 4.4
  • 4.4
  • 4.4

4.4

5 ratings