2022-12-28 03:41:11 +08:00
|
|
|
#source: dt-relr-2.s
|
|
|
|
#ld: -e _start -pie --no-keep-memory $DT_RELR_LDFLAGS
|
|
|
|
#readelf: -rW -d
|
|
|
|
#target: [supports_dt_relr]
|
|
|
|
|
|
|
|
#...
|
|
|
|
0x[0-9a-f]+ \(RELR\) +0x[0-9a-f]+
|
|
|
|
0x[0-9a-f]+ \(RELRSZ\) +(8|16) \(bytes\)
|
|
|
|
0x[0-9a-f]+ \(RELRENT\) +(4|8) \(bytes\)
|
|
|
|
#...
|
|
|
|
Relocation section '\.rel(a|)\.dyn' at offset 0x[0-9a-f]+ contains 1 entry:
|
|
|
|
#...
|
|
|
|
[0-9a-f]+ +[0-9a-f]+ +R_.*_(RELATIVE|UADDR.*) .*
|
|
|
|
#...
|
2024-04-24 19:45:04 +08:00
|
|
|
Relocation section '\.relr\.dyn' at offset 0x[0-9a-f]+ contains 2 entries which relocate [0-9]+ locations:
|
2024-04-11 23:57:18 +08:00
|
|
|
#...
|
2024-04-16 20:17:35 +08:00
|
|
|
0000: +[0-9a-f]+ [0-9a-f]+ +data
|
|
|
|
0001: +[0-9a-f]+ [0-9a-f]+ +data \+ 0x[0-9a-f]+
|
2024-04-11 23:57:18 +08:00
|
|
|
+[0-9a-f]+ +data \+ 0x[0-9a-f]+
|
|
|
|
+[0-9a-f]+ +data \+ 0x[0-9a-f]+
|
2022-12-28 03:41:11 +08:00
|
|
|
#pass
|