binutils 2.14a i370 gas literal issue

Jens Remus jremus@linux.ibm.com
Wed Aug 21 13:59:19 GMT 2024


Am 21.08.2024 um 13:14 schrieb Paul Edwards:
> On Wed, 21 Aug 2024 at 18:18, Jens Remus <jremus@linux.ibm.com> wrote:
>> Am 21.08.2024 um 10:11 schrieb Paul Edwards:
>>> I am aware that 2.14a is out of support, and I am also aware
>>> that the i370 target of gas is no longer supported at all on the
>>> modern binutils.
>>>
>>> However, if someone is interested in helping resolve this
>>> issue "for old time's sake", that would be great.
>>
>> As a former z/VSE developer with HLASM background I could not resist the
>> urge to have a short look.
> 
> Fantastic! Thanks for that result. Any chance of repeating
> it on 2.14?

Binutils 2.14 built from the branch "binutils-2_14-branch" produces similar results as yours with regards to the C1s gone missing. As with 2.30 the offsets in the MVC instruction are not what I would expect coming from HLASM. This seems to be corrected in your customized build.

~/temp/binutils-2.14-i370 $ bin/i370-linux-gnu-as -a=list.txt -o paul.o paul.s
~/temp/binutils-2.14-i370 $ cat list.txt
GAS LISTING paul.s                      page 1


    1                    .text
    2                    .globl main
    3                    .using .,r7
    4 0000 D207D05C               MVC   92(8,r13),=XL8'C1C1C1C1C1C1C1C1'
    4      7010
    5 0006 D207D064               MVC   100(8,r13),=XL8'C2C2C2C2C2C2C2C2'
    5      7012
    6 000c 00000000      .ltorg
    6      C2C2C2C2
    6      C2C2C2C2
    6      C2C2C2C2
    6      C2C2C2C2

GAS LISTING paul.s                      page 2


NO DEFINED SYMBOLS

UNDEFINED SYMBOLS
main

~/temp/binutils-2.14-i370 $ bin/i370-linux-gnu-objdump -s paul.o

paul.o:     file format elf32-i370

Contents of section .text:
  0000 d207d05c 7010d207 d0647012 00000000  ...\p....dp.....
  0010 c2c2c2c2 c2c2c2c2 c2c2c2c2 c2c2c2c2  ................
Contents of section .data:

Regards,
Jens
-- 
Jens Remus
Linux on Z Development (D3303) and z/VSE Support
+49-7031-16-1128 Office
jremus@de.ibm.com

IBM

IBM Deutschland Research & Development GmbH; Vorsitzender des Aufsichtsrats: Wolfgang Wendt; Geschäftsführung: David Faller; Sitz der Gesellschaft: Böblingen; Registergericht: Amtsgericht Stuttgart, HRB 243294
IBM Data Privacy Statement: https://www.ibm.com/privacy/


More information about the Binutils mailing list