Hi,
On using GDB debugger on different executables, the address displayed for the symbols seem incorrect, as it shows me the same address in each prorgram, run simultaneoulsy.
eg:
Program: linkmain1.c
Breakpoint 1, main () at linkmain1.c:14
14 printf("In linkmain1.c\n");
(gdb) info addr main
Symbol "main" is a function at address 0x10780.
Program: linkmain.c
Breakpoint 1, main () at linkmain.c:14
14 printf("In linkmain.c\n");
(gdb) info addr main
Symbol "main" is a function at address 0x10780.
If you see, the address for main is displayed the same, in each executable.
I was basically trying to check if a shared library with PIC is actually shared between processes.
Please advice, on the above, or if i am making a mistake
BTW: I am using GDB on solaris