https://sourceware.org/bugzilla/show_bug.cgi?id=32624
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Jan Beulich from comment #4) > Created attachment 15909 [details] > annotated source file > > See commentary in there. Is there anything else you need? This is what I got: [hjl@gnu-tgl-3 pr32624]$ cat x.s .text .global _start .allow_index_reg _start: lea got32@got, %eax lea got32@got(,%eiz), %eax add got32@got, %eax add got32@got(,%eiz), %eax btl $31, got32@got btl $31, got32@got(,%eiz) vpermb got32@got, %zmm1, %zmm0 vpermb got32@got(,%eiz), %zmm1, %zmm0 ret .data .p2align 4 got32: .long 0x058d058d, got32@got .long 0x058c058c, got32@got .long got32+0x05000000, got32@got [hjl@gnu-tgl-3 pr32624]$ make x.o as -mx86-used-note=no -mrelax-relocations=yes --32 -o x.o x.s [hjl@gnu-tgl-3 pr32624]$ readelf -r x.o Relocation section '.rel.text' at offset 0x104 contains 8 entries: Offset Info Type Sym.Value Sym. Name 00000002 00000203 R_386_GOT32 00000000 got32 00000009 00000203 R_386_GOT32 00000000 got32 0000000f 0000022b R_386_GOT32X 00000000 got32 00000016 00000203 R_386_GOT32 00000000 got32 0000001d 00000203 R_386_GOT32 00000000 got32 00000026 00000203 R_386_GOT32 00000000 got32 00000031 00000203 R_386_GOT32 00000000 got32 0000003c 00000203 R_386_GOT32 00000000 got32 Relocation section '.rel.data' at offset 0x144 contains 4 entries: Offset Info Type Sym.Value Sym. Name 00000004 00000203 R_386_GOT32 00000000 got32 0000000c 00000203 R_386_GOT32 00000000 got32 00000010 00000101 R_386_32 00000000 .data 00000014 00000203 R_386_GOT32 00000000 got32 [hjl@gnu-tgl-3 pr32624]$ objdump -dwr x.o x.o: file format elf32-i386 Disassembly of section .text: 00000000 <_start>: 0: 8d 05 00 00 00 00 lea 0x0,%eax 2: R_386_GOT32 got32 6: 8d 04 25 00 00 00 00 lea 0x0(,%eiz,1),%eax 9: R_386_GOT32 got32 d: 03 05 00 00 00 00 add 0x0,%eax f: R_386_GOT32X got32 13: 03 04 25 00 00 00 00 add 0x0(,%eiz,1),%eax 16: R_386_GOT32got32 1a: 0f ba 25 00 00 00 00 1f btl $0x1f,0x0 1d: R_386_GOT32got32 22: 0f ba 24 25 00 00 00 00 1f btl $0x1f,0x0(,%eiz,1) 26: R_386_GOT32 got32 2b: 62 f2 75 48 8d 05 00 00 00 00 vpermb 0x0,%zmm1,%zmm0 31: R_386_GOT32got32 35: 62 f2 75 48 8d 04 25 00 00 00 00 vpermb 0x0(,%eiz,1),%zmm1,%zmm03c: R_386_GOT32 got32 40: c3 ret [hjl@gnu-tgl-3 pr32624]$ make ./ld -m elf_i386 -z norelro -z nomemory-seal -o x x.o objdump -dw x x: file format elf32-i386 Disassembly of section .text: 08048074 <_start>: 8048074: 8d 05 fc ff ff ff lea 0xfffffffc,%eax 804807a: 8d 04 25 00 90 04 08 lea 0x8049000(,%eiz,1),%eax 8048081: 81 c0 10 90 04 08 add $0x8049010,%eax 8048087: 03 04 25 00 90 04 08 add 0x8049000(,%eiz,1),%eax 804808e: 0f ba 25 00 90 04 08 1f btl $0x1f,0x8049000 8048096: 0f ba 24 25 00 90 04 08 1f btl $0x1f,0x8049000(,%eiz,1) 804809f: 62 f2 75 48 8d 05 fc ff ff ff vpermb 0xfffffffc,%zmm1,%zmm0 80480a9: 62 f2 75 48 8d 04 25 00 90 04 08 vpermb 0x8049000(,%eiz,1),%zmm1,%zmm0 80480b4: c3 ret [hjl@gnu-tgl-3 pr32624]$ Where are the errors? -- You are receiving this mail because: You are on the CC list for the bug.