That's correct on both counts. If that became a problem, I
guess one could move to one of the larger code models, or
probably better, just use PIC.
I'll include the readelf output below.
- Ali
====================================================================================
% readelf -r x64
Relocation section '.SUNW_reloc' at offset 0xaf8 contains 6 entries:
Offset Info Type Sym. Value Sym. Name + Addend
000000500f98 000100000006 R_X86_64_GLOB_DAT 0000000000000000 _Jv_RegisterClasses + 0
000000500f88 000300000006 R_X86_64_GLOB_DAT 0000000000000000 _ITM_deregisterTMClone + 0
000000500f90 000800000006 R_X86_64_GLOB_DAT 0000000000000000 _ITM_registerTMCloneTa + 0
000000400e71 000d0000000a R_X86_64_32 0000000000000000 fun + 0
000000400e7f 000d00000002 R_X86_64_PC32 0000000000000000 fun - 4
000000500f68 001300000006 R_X86_64_GLOB_DAT 0000000000000000 __start_crt_compiler + 0
Relocation section '.rela.plt' at offset 0xb88 contains 5 entries:
Offset Info Type Sym. Value Sym. Name + Addend
000000500f40 000e00000007 R_X86_64_JUMP_SLO 0000000000400c10 exit + 0
000000500f48 001000000007 R_X86_64_JUMP_SLO 0000000000400c20 _exit + 0
000000500f60 000600000007 R_X86_64_JUMP_SLO 0000000000400c30 atexit + 0
000000500f70 001300000007 R_X86_64_JUMP_SLO 0000000000000000 __start_crt_compiler + 0
000000500f80 000700000007 R_X86_64_JUMP_SLO 0000000000400c50 __fpstart + 0
% readelf -r y64
Relocation section '.SUNW_reloc' at offset 0xaf8 contains 5 entries:
Offset Info Type Sym. Value Sym. Name + Addend
000000500fa8 000100000006 R_X86_64_GLOB_DAT 0000000000000000 _Jv_RegisterClasses + 0
000000500f98 000300000006 R_X86_64_GLOB_DAT 0000000000000000 _ITM_deregisterTMClone + 0
000000500fa0 000800000006 R_X86_64_GLOB_DAT 0000000000000000 _ITM_registerTMCloneTa + 0
000000500fb0 000d00000006 R_X86_64_GLOB_DAT 0000000000000000 fun + 0
000000500f78 001300000006 R_X86_64_GLOB_DAT 0000000000000000 __start_crt_compiler + 0
Relocation section '.rela.plt' at offset 0xb70 contains 6 entries:
Offset Info Type Sym. Value Sym. Name + Addend
000000500f50 000e00000007 R_X86_64_JUMP_SLO 0000000000400c10 exit + 0
000000500f58 001000000007 R_X86_64_JUMP_SLO 0000000000400c20 _exit + 0
000000500f70 000600000007 R_X86_64_JUMP_SLO 0000000000400c30 atexit + 0
000000500f80 001300000007 R_X86_64_JUMP_SLO 0000000000000000 __start_crt_compiler + 0
000000500f90 000700000007 R_X86_64_JUMP_SLO 0000000000400c50 __fpstart + 0
000000500fb8 000d00000007 R_X86_64_JUMP_SLO 0000000000000000 fun + 0