aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/ifunc.d
blob: f5a7584d18ad2dc9384a588a5fee331698a6bfb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#name: Generation of dynamic relocs for STT_IFUNC symbols
#source: ifunc.s
#as: --32
#ld: -melf_i386 -lc --defsym _start=0 -L/usr/lib
#readelf: --relocs --syms

Relocation section '.rel.ifunc.dyn' at offset 0x[0-9a-f]+ contains 2 entries:
 +Offset +Info +Type +Sym.Value +Sym. Name
[0-9a-f]+  0+0202 R_386_PC32        func\(\)     func
[0-9a-f]+  0+0102 R_386_PC32        long_fun\(\) long_func_name
#...
    ..: [0-9a-f]+    .. IFUNC   GLOBAL DEFAULT   .. long_func_name
    ..: [0-9a-f]+    .. IFUNC   GLOBAL DEFAULT   .. func
#pass