X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Hans-Bernhard Broeker 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: References: <1021312249 DOT 448613 AT queeg DOT ludd DOT luth 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 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.