This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Q: Estimated date for 2.16 release ?



On Feb 24, 2005, at 11:49 AM, Joel Sherrill <joel@OARcorp.com> 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 <joel@OARcorp.com> 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 <norume@aps.anl.gov>
Advanced Photon Source
Argonne National Laboratory
(630) 252-4793


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]