🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #11909

Lattice 5.02 Blink bug?

#11909
From: Brian D. Watkins
Date: Tue, 21 Mar 1989 20:47
50 lines
2118 bytes
  I ran into an interesting problem the other night when I tried
to assemble Werner Gunther's Xoper program using the Lattice 5.02
version of asm and Blink.

  The program is written to create two code hunks in the object
code.  When the program is executed, the second hunk is detached
from the segment list and launched as a new process.

  When I tried to execute the program my computer crashed.  Using
the Lattice debugger cpr I discovered that the segment being passed
to CreateProc was a data segment, not the second code segment!

  The assembler produces an object file that contains four hunks in
the following order:

  Hunk #     Name     Type
  ------------------------
    0       Startup   Code
    1       Xoper     Code
    2       blabla    Data
    3       Packet    Data

After Blink is used to satisfy the references to the _LVO symbols
and a few library routines from amiga.lib, the executable file
contains hunks in the following order:

  Hunk #     Name     Type
  ------------------------
     0      Startup   Code
     1      blabla    Data
     2      Packet    Data
     3      Xoper     Code
    4..11   various code and data hunks from amiga.lib

It seems that Blink is changing the order of the hunks, which really
screws up the Xoper program.  If I use the 5.0 version of Blink,
however, everything works fine.

  Is this a bug in Blink 5.02, or is it some new feature that I am
unaware of?  I do not have access to the Lattice BBS, so I am not sure
if they already know about this problem.  If anybody knows of a solution
please clue me in.

  Thanks in advance,
 
==============================
Brian Watkins
watkins%hpspkla@hplabs.hp.com 
hplabs.hp.com!hpspkla!watkins
Technical Details
Message-ID: <7480002@hpspkla.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpspkla!watkins

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpspkla!watkins
From: watkins@hpspkla.HP.COM (Brian D. Watkins)
Newsgroups: comp.sys.amiga.tech
Subject: Lattice 5.02 Blink bug?
Message-ID: <7480002@hpspkla.HP.COM>
Date: 21 Mar 89 20:47:23 GMT
Organization: Hewlett Packard Company, Spokane, Wa.
Lines: 50