https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96350

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
We can force 0xfa1e0ff3 into memory with

[hjl@gnu-snb-1 tmp]$ cat bar.s
        .text
        .p2align 4
        .globl  foo
        .type   foo, @function
foo:
        movl    .LC0(%rip), %eax
        ret
        .section .rodata.cst4,"aM",@progbits,4
        .align 4
.LC0:
        .long  0xfa1e0ff3
        .section        .note.GNU-stack,"",@progbits
[hjl@gnu-snb-1 tmp]$ gcc -c bar.s
[hjl@gnu-snb-1 tmp]$ objdump -dwr bar.o

bar.o:     file format elf64-x86-64


Disassembly of section .text:

0000000000000000 <foo>:
   0:   8b 05 00 00 00 00       mov    0x0(%rip),%eax        # 6 <foo+0x6>     
2: R_X86_64_PC32        .LC0-0x4
   6:   c3                      ret    
[hjl@gnu-snb-1 tmp]$

Reply via email to