From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3137 invoked by alias); 24 Feb 2005 18:40:33 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 3047 invoked from network); 24 Feb 2005 18:40:25 -0000 Received: from unknown (HELO iota.aps.anl.gov) (164.54.56.3) by sourceware.org with SMTP; 24 Feb 2005 18:40:25 -0000 Received: from herald.aps.anl.gov (herald.aps.anl.gov [164.54.50.61]) by iota.aps.anl.gov with ESMTP id j1OIePvT022306 for ; Thu, 24 Feb 2005 12:40:25 -0600 (CST) Received: from alipes.aps.anl.gov (alipes [164.54.49.255]) by herald.aps.anl.gov (8.13.1/8.13.1) with ESMTP id j1OIeHew012327; Thu, 24 Feb 2005 12:40:18 -0600 (CST) Received: from [164.54.8.161] (callisto.aps.anl.gov [164.54.8.161]) by alipes.aps.anl.gov (8.12.10+Sun/8.12.9) with ESMTP id j1OIeHYt016222; Thu, 24 Feb 2005 12:40:17 -0600 (CST) In-Reply-To: <421E13B4.7080100@OARcorp.com> References: <20050127140010.GA447@nevyn.them.org> <41F8F9D3.3080502@OARcorp.com> <20050224174631.GE5216@nevyn.them.org> <421E13B4.7080100@OARcorp.com> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <877710A5-8693-11D9-807E-000393B3F2BE@aps.anl.gov> Content-Transfer-Encoding: 7bit Cc: binutils@sources.redhat.com, Daniel Jacobowitz , Hans-Peter Nilsson From: Eric Norum Subject: Re: Q: Estimated date for 2.16 release ? Date: Thu, 24 Feb 2005 20:36:00 -0000 To: joel.sherrill@OARcorp.com X-Spam-Status: No, score=-105.9 required=5.6 tests=ALL_TRUSTED,BAYES_00, USER_IN_WHITELIST autolearn=ham version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on herald.aps.anl.gov X-SW-Source: 2005-02/txt/msg00612.txt.bz2 On Feb 24, 2005, at 11:49 AM, Joel Sherrill wrote: > Daniel Jacobowitz wrote: >> On Thu, Jan 27, 2005 at 09:36:11AM -0500, Hans-Peter Nilsson wrote: >>> On Thu, 27 Jan 2005, Joel Sherrill wrote: >>> >>>> http://sources.redhat.com/ml/binutils/2004-03/msg00489.html >>>> >>>> Eric Norum (cc'ed) recently narrowed it down to this construct: >>>> >>>> ============================================================= >>>> A little poking around reveals that it's the lines like: >>>> >>>> _RamBase = DEFINED(_RamBase) ? _RamBase : 0x0; >>>> _RamSize = DEFINED(_RamSize) ? _RamSize : 0x7f0000; >>>> _HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0; /* 0x20000;*/ >>>> _StackSize = DEFINED(_StackSize) ? _StackSize : 1M; /* 0x2000;*/ >>>> >>>> that are killing ld. >>>> ============================================================== >>>> >>>> Does this sound familiar? >>> >>> Yes. :-( The semantics of DEFINED has changed. IIRC, my patch >>> to announce that in ld/NEWS before 2.15 received no comments. >>> The usage above should still work, though. >>> >>> Can you open a PR with binutils-self-contained (only assembly >>> files, no C or objects) test-case? Maybe all was at the URL >>> above, but I don't see the ld command line. Still, please open >>> a PR. >> Was a PR ever created for this? Has anyone looked at it? > > Not that I know of. > > Eric.. if you have a .c file and simple linkcmds that produces this, > then just use the -S option to put together a binutils test case. I didn't worry about this any more after I found that the problem went away if I changed my application link-edit command as follows (from RTEMS/make/custrom/uC5282.cfg): define make-exe - $(LINK.c) $(AM_CFLAGS) -m5200 $(AM_LDFLAGS) -qnolinkcmds -o $(basename $@).nxe \ - $(LINK_OBJS) $(LINK_LIBS) -Wl,-Tlinkcmds + $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).nxe \ + $(LINK_OBJS) $(LINK_LIBS) $(OBJCOPY) -O binary --strip-all $(basename $@).nxe $@ $(SIZE) $(basename $@).nxe endef -- Eric Norum Advanced Photon Source Argonne National Laboratory (630) 252-4793