🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.asm370
Article #113

Strange prelink phenomenon

#113
From: John Krew
Date: Thu, 29 Sep 2005 19:05
26 lines
3045 bytes
I was wondering if someone could explain to me the following strange phenomenon.  The scenario has
been simplified to isolate the essential differences between the two contradictory cases.

A simple C program ("Hello world") is compiled.  The object deck output is input to the prelink
utility, followed by the object deck of an assembler program.  The output of the prelink is input to
the linkage editor, producing a load module.

I receive two completely different results, depending on which assembler program is included in the
input to the prelink.  For program ASM1,  the prelink first outputs a CEESTART binary deck, followed
by the binary deck of the C program code, and then that of the asembler routine. The resulting load
module has the CEESTART csect at offset +0 (i.e., the first csect in the module).

For program ASM2, the prelink does not output a CEESTART binary deck, but only the binary deck of
the C program and that of the asembler routine.  The linkage editor then retrieves a copy of
CEESTART from SYSLIB, and the CEESTART csect is at a nonzero offset within the resultant load
module.

By the way, the prelink report (SYSPRINT dataset) in *both* cases indicates that the CEESTART csect
is being output, but in actual fact it is *not* when ASM2 is included in the prelink.  (I also
checked the respective outputs from the prelink to make sure).

Both assembler programs use the EDCPRLG/EDCEPIL macros.

Anybody have a notion of what is going on?

John Krew
Technical Details
Message-ID: <BAY18-DAV128BABB3C314B3FE6AD18E988C0@phx.gbl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!sn-xit-04!sn-xit-12!sn-xit-09!sn-xit-06!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!hotmail.com!john_krew

Show Full Headers
Complete Article Headers
X-Google-Thread: fcdcb,15051ef587cd4d9,start
X-Google-Attributes: gidfcdcb,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!sn-xit-04!sn-xit-12!sn-xit-09!sn-xit-06!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!hotmail.com!john_krew
From: John Krew <john_krew@hotmail.com>
Newsgroups: bit.listserv.asm370
Subject: Strange prelink phenomenon
Date: Thu, 29 Sep 2005 21:05:27 +0200
Organization: SAS Inc.
Lines: 26
Sender: IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU>
Message-ID: <BAY18-DAV128BABB3C314B3FE6AD18E988C0@phx.gbl>
NNTP-Posting-Host: mozart.unx.sas.com
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1255
Content-Transfer-Encoding: 7bit
X-Trace: foggy.unx.sas.com 1128017669 13893 10.19.150.41 (29 Sep 2005 18:14:29 GMT)
X-Complaints-To: usenet@unx.sas.com
NNTP-Posting-Date: Thu, 29 Sep 2005 18:14:29 +0000 (UTC)
Comments: Gated by NETNEWS@VM.SAS.COM
Return-Path: <owner-assembler-list@LISTSERV.UGA.EDU>
X-Originating-IP: [194.90.96.177]
X-Originating-Email: [john_krew@hotmail.com]
X-Sender: john_krew@hotmail.com
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
X-OriginalArrivalTime: 29 Sep 2005 18:05:53.0878 (UTC)
                       FILETIME=[6ED18F60:01C5C520]
Approved-By: John Krew <john_krew@HOTMAIL.COM>
Return-Path: owner-assembler-list@LISTSERV.UGA.EDU
Originator: daemon@mozart.unx.sas.com