https://sourceware.org/bugzilla/show_bug.cgi?id=34423

--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> ---
LLVM assembler also supports ".long foo@PLT - .L4" for i386:

[hjl@gnu-tgl-3 pic-1]$ cat foo.S
        .section        .rodata
        .p2align 2
.L4:
        .long   foo1@PLT - .L4
        .long   foo2@PLT - .L4
        .long   foo3@PLT - .L4
        .long   foo4@PLT - .L4
[hjl@gnu-tgl-3 pic-1]$ make foo-32.llvm
llvm-mc --filetype=obj --triple=i386-linux -o foo-32.llvm foo.S
[hjl@gnu-tgl-3 pic-1]$ readelf -r -x .rodata foo-32.llvm

Relocation section '.rel.rodata' at offset 0x94 contains 4 entries:
 Offset     Info    Type            Sym.Value  Sym. Name
00000000  00000104 R_386_PLT32       00000000   foo1
00000004  00000204 R_386_PLT32       00000000   foo2
00000008  00000304 R_386_PLT32       00000000   foo3
0000000c  00000404 R_386_PLT32       00000000   foo4

Hex dump of section '.rodata':
 NOTE: This section has relocations against it, but these have NOT been applied
to this dump.
  0x00000000 00000000 04000000 08000000 0c000000 ................

[hjl@gnu-tgl-3 pic-1]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to