1#name: GOT/PLT Link test 2#source: got.s 3#ld: -shared --hash-style=sysv 4#readelf: -d -r 5 6Dynamic section at offset 0x[0-9a-f]+ contains 13 entries: 7 Tag Type Name/Value 8 0x00000004 \(HASH\) .* 9 0x00000005 \(STRTAB\) .* 10 0x00000006 \(SYMTAB\) .* 11 0x0000000a \(STRSZ\) .* \(bytes\) 12 0x0000000b \(SYMENT\) .* \(bytes\) 13 0x00000003 \(PLTGOT\) 0x[0-9a-f]+ 14 0x00000002 \(PLTRELSZ\) 12 \(bytes\) 15 0x00000014 \(PLTREL\) RELA 16 0x00000017 \(JMPREL\) 0x[0-9a-f]+ 17 0x00000007 \(RELA\) 0x[0-9a-f]+ 18 0x00000008 \(RELASZ\) 24 \(bytes\) 19 0x00000009 \(RELAENT\) 12 \(bytes\) 20 0x00000000 \(NULL\) 0x0 21 22Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 2 entries: 23 Offset Info Type Sym.Value Sym. Name \+ Addend 24[0-9a-f]+ [0-9a-f]+ R_CKCORE_GLOB_DAT 00000000 var1 \+ 0 25[0-9a-f]+ [0-9a-f]+ R_CKCORE_GLOB_DAT 00000000 var2 \+ 0 26 27Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entry: 28 Offset Info Type Sym.Value Sym. Name \+ Addend 29[0-9a-f]+ [0-9a-f]+ R_CKCORE_JUMP_SLO 00000000 bar \+ .* 30