IBM Z and LinuxONE IBM Z

  • 1.  S/390 assembler on Linux

    IBM Champion
    Posted Wed March 09, 2022 08:40 AM
    I would like to be able to assemble and execute s/390 assembler on LinuxOne - possible ? If so instructions please.
    Karl-Erik Stenfors

    +33 (0) 7 81 41 00 79

  • 2.  RE: S/390 assembler on Linux

    Posted Wed March 09, 2022 09:33 AM
    There is a HLASM for Linux on Z. Contact your IBM marketing rep to order product 5799-TCQ (and for annual support and Service, 5799-TCR). It requires some form of

    Jim Elliott
    Senior IT Consultant
    GlassHouse Systems Inc.
    O: 416-239-2960 x341
    C: 416-527-0666

  • 3.  RE: S/390 assembler on Linux

    Posted Wed March 09, 2022 11:00 AM

    Just realized the end got cut off. The PRPQ says you can only license this for running on IFLs. If you need to run this on CPs, then you order FC 5950 on HLASM 5696-234..


    Here is a link to the announcement letter for HLASM which includes the Linux PRPQ ordering info.


    Jim Elliott | Senior IT Consultant

    GlassHouse Systems Inc


  • 4.  RE: S/390 assembler on Linux

    Posted Fri March 11, 2022 09:59 AM
    I was the IBMer who worked with John Ehrman on getting HLASM to run on z/Linux. Note that it requires System z hardware underneath, it does NOT run on x86 or other non-z hardware.

    I haven't had cause to use it for a while, but I believe there's a Linux-only option to generate ELF32 output -- not ELF64 -- which Mr. Ehrman designed into the product. If you want ELF64 relocatable output, you'll have to process it for yourself and do the conversion from GOFF to ELF64 programmatically. I wrote the prototype which did the conversion, and another Lab member wrote the final product from it. It's called goff2elf (surprisingly enough) and is available with the z/TPF Program Product. I don't know of any other way to obtain that program.

    I'm no longer an IBMer and cannot help you obtain this program (probably couldn't have anyway, even if I still were).

    Jim Tison

  • 5.  RE: S/390 assembler on Linux

    Posted Wed January 24, 2024 05:12 PM

    In case anyone else finds this old post, the current situation is that since APAR PH15557, shipped in October 2019, HLASM (running on MVS, CMS or Linux on Z) has been able to generate ELF64 directly (using the integrated ASMAXT2E object code exit).  Since APAR PH47425 in October 2022, supplied for Linux in HLASM RPM 54, HLASM is now shipped for Linux as an ELF64 executable, instead of an ELF32 executable (which required compatibility libraries).

    Jonathan Scott

  • 6.  RE: S/390 assembler on Linux

    Posted Thu March 10, 2022 02:34 AM

    The GNU assembler (gas) is part of binutils. It _should_ be available for Linux on Z, as in any Linux platform. Beware of the syntax differences though. This document contains some information about the differences between HLASM and gas:

    share98.sxi (

    Jordi Guillaumes Pons