1 #as
: --64 --elf
-stt
-common
=yes
2 #ld
: -shared -Bsymbolic
-functions
-melf_x86_64
3 #readelf
: -r
--wide
--dyn
-syms
5 Relocation section
'.rela.dyn' at offset
0x
[0-9a
-f
]+ contains
1 entries
:
6 +Offset
+Info
+Type
+Symbol
's Value +Symbol's Name \
+ Addend
7 [0-9a
-f
]+ +[0-9a
-f
]+ +R_X86_64_GLOB_DAT
+[0-9a
-f
]+ +foobar \
+ 0
9 Symbol table
'.dynsym' contains
[0-9]+ entries
:
10 +Num
: +Value
+Size
+Type
+Bind
+Vis
+Ndx
+Name
12 +[0-9]+: +[0-9a
-f
]+ +30 +OBJECT
+GLOBAL
+DEFAULT
+[0-9]+ foobar