+2021-05-03 Jan Beulich <jbeulich@suse.com>
+
+ * config/tc-i386.h (TC_PARSE_CONS_EXPRESSION): Adjust surrounding
+ #if.
+ * testsuite/gas/i386/secrel.s: Convert some .secrel32 to .long.
+ Add two further .long and an .equ.
+ * testsuite/gas/i386/secrel.d: Adjust expecations.
+
2021-05-03 Jan Beulich <jbeulich@suse.com>
* testsuite/gas/i386/secrel.d, testsuite/gas/i386/secrel.s:
#define GLOBAL_OFFSET_TABLE_NAME "_GLOBAL_OFFSET_TABLE_"
#endif
-#if (defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) && !defined (LEX_AT)
+#if ((defined (OBJ_ELF) || defined (OBJ_MAYBE_ELF)) \
+ && !defined (LEX_AT)) || defined (TE_PE)
#define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES) x86_cons (EXP, NBYTES)
#endif
extern bfd_reloc_code_real_type x86_cons (expressionS *, int);
0+89 secrel32 ext2d
0+8e secrel32 ext36
0+93 secrel32 ext3f
-0+a2 secrel32 bar
+0+a0 secrel32 \.text
+0+a4 secrel32 \.text
+0+aa secrel32 bar
Contents of section \.text:
0000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c >>>><<<<>>>>><<<
0070 0000111f 00000011 3c3c3c3c 3c3c3c3c ........<<<<<<<<
0080 3e3e3e3e 00000000 11000000 00110000 >>>>............
0090 00001100 00000011 3c3c3c3c 3c3c3c3c ........<<<<<<<<
- 00a0 8d902c00 00000000 ..,..... *
+ 00a0 10000000 1c000000 8d902c00 00000000 ..........,.....
Contents of section \.rdata:
0000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c >>>><<<<>>>>><<<
0010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c >>>>>><<>>>>>>><
.byte 0x11
.secrel32 pre16
.byte 0x11
- .secrel32 pre1f
+ .long pre1f@secrel32
.byte 0x11
.ascii "<<<<<<<<"
.byte 0x11
.secrel32 sam0d
.byte 0x11
- .secrel32 sam16
+ .long sam16@secrel32
.byte 0x11
.secrel32 sam1f
.byte 0x11
.ascii ">>>>"
.secrel32 nex04
.byte 0x11
- .secrel32 nex0d
+ .long nex0d@secrel32
.byte 0x11
.secrel32 nex16
.byte 0x11
.ascii "<<<<<<<<"
.ascii ">>>>"
- .secrel32 ext24
+ .long ext24@secrel32
.byte 0x11
.secrel32 ext2d
.byte 0x11
.byte 0x11
.ascii "<<<<<<<<"
+ .long pre0d@secrel32+3
+ .long pre16@secrel32+six
+
leal bar@SECREL32+44(%eax), %edx
.section .rdata
.ascii ">>>>"
.p2align 4,0
+ .equ six,6