🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51741

gas porting questions.

#51741
From: Tom Rodriguez
Date: Mon, 05 Apr 1993 06:16
28 lines
1562 bytes
	I'm trying to port gas to generate z80 assemble for use in an
embedded system.  Through looking at other target cpus i've gotten
most of the machine dependent assembler stuff written.  I'm planning
on using the (undocumented) Srecord backend for output using BFD.
I've started actually generating code but there seems to be some
problem with how i'm using bfd and/or frags.  The assertion below
fails in the file gas/write.c at line 495.

      if (fill_size && count)
	while (count--)
	  {
	    x = bfd_set_section_contents (stdoutput, sec,
					  fill_literal, offset, fill_size);
->	    assert (x == true);
	    offset += fill_size;
	  }

	Since there's so little documentation on as internals i'm
really at a loss about what's wrong.  If there's anyone out there who
can help me, it would be greatly appreciated.  Thanks.

	tom
--
Tom Rodriguez  (jack@cc.gatech.edu)
Multimedia Computing Group - GVU Lab
Georgia Institute of Technology
Atlanta, Georgia 30332-0280
Technical Details
Message-ID: <JACK.93Apr5011636@multimedia.cc.gatech.edu>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!gatech!prism!cc.gatech.edu!news.cc.gatech.edu!jack

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,b49a34e3513ed202,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-04-06 19:37:33 PST
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!gatech!prism!cc.gatech.edu!news.cc.gatech.edu!jack
From: jack@multimedia.cc.gatech.edu (Tom Rodriguez)
Newsgroups: gnu.gcc.help
Subject: gas porting questions.
Message-ID: <JACK.93Apr5011636@multimedia.cc.gatech.edu>
Date: 5 Apr 93 06:16:36 GMT
Sender: news@cc.gatech.edu
Organization: Multimedia Computing Group
Lines: 28