3 #as
: --pic
--no
-underscore
--em
=criself
4 #ld
: --shared -m crislinux
5 #readelf
: --dyn
-syms
-r
7 # Besides typical DSO
stuff (libdso
-1.d
), we here have a data section
8 #
with an absolute reloc to a local symbol
. For the original
9 #
test-case, this happened
for a
destructor (.dtors
).
11 Relocation section
'\.rela\.dyn' at offset
0x
[0-9a
-f
]+ contains
1 entry
:
12 Offset
[ ]+Info
[ ]+Type
[ ]+Sym\
.Value Sym\
. Name \
+ Addend
13 [a
-f0
-9]+[ ]+0+c R_CRIS_RELATIVE
[ ]+ [a
-f0
-9]+
15 Symbol table
'\.dynsym' contains
3 entries
: