delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/05/14/08:02:21

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: /DISCARD/ in linker script
Date: 14 May 2002 11:49:47 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 17
Message-ID: <abqtkr$5tr$1@nets3.rz.RWTH-Aachen.DE>
References: <1021312249 DOT 448613 AT queeg DOT ludd DOT luth DOT se> <abq5hj$60ho$1 AT as201 DOT hinet DOT hr> <abqmh3$hde$1 AT antares DOT lu DOT erisoft DOT se>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1021376987 6075 137.226.32.75 (14 May 2002 11:49:47 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 14 May 2002 11:49:47 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Martin Stromberg <eplmst AT lu DOT erisoft DOT se> wrote:

[...]
> : > /DISCARD/ SIZEOF(.data) + ADDR(.data) : {

> : > ld says "Illegal use of `/DISCARD/' section"

> Yes. And why doesn't my example work?

Let me venture a guess: because it's pointless, and may well be
disallowed to assign a target address (like "at the end of .data", as
used in your example) to a segment that will be thrown away.  E.g. I'd
expect this to start working once you get rid of that address
argument.
-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019