public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* ld exclusion of *default* memory address mapping
@ 2011-04-19 12:55 Jon Grant
  2011-04-28  6:05 ` Alan Modra
  0 siblings, 1 reply; 3+ messages in thread
From: Jon Grant @ 2011-04-19 12:55 UTC (permalink / raw)
  To: binutils

Hello

I am using a build of ld, v2.20. I would like to exclude the *default*
catch all memory address visible in the map file quote below.

Read through the man page, but have not spotted an option to disable
this *default* address mapping. If anyone could point me to the
documentation of the option I should use that would be appreciated.

Please keep my email address included i any replies as I am not on
this list. Thank you for any help.

Best regards, Jon



map file quote
=============
Name             Origin             Length             Attributes
rom              0x00000000         0x00400000         xr
ram              0x10000000         0x00100000         xrw
*default*        0x00000000         0xffffffff
=============


quote from my ld script
=================
MEMORY
{
	rom (rx)	: org = 0x00000000, len = 4M
	ram (rwx)	: org = 0x10000000, len = 1M
}
==================

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ld exclusion of *default* memory address mapping
  2011-04-19 12:55 ld exclusion of *default* memory address mapping Jon Grant
@ 2011-04-28  6:05 ` Alan Modra
  2011-06-20 11:17   ` Jon Grant
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Modra @ 2011-04-28  6:05 UTC (permalink / raw)
  To: Jon Grant; +Cc: binutils

On Tue, Apr 19, 2011 at 01:55:01PM +0100, Jon Grant wrote:
> I am using a build of ld, v2.20. I would like to exclude the *default*
> catch all memory address visible in the map file quote below.

If you specify some memory regions, GNU ld will give an error (or
warning if --no-check-sections) if an output section without an
address is assigned to the default region.  If you specify an address
(see ld info Output Section Description) it's assumed you know what
you're doing.  So I'm wondering why you want anything more than this?

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ld exclusion of *default* memory address mapping
  2011-04-28  6:05 ` Alan Modra
@ 2011-06-20 11:17   ` Jon Grant
  0 siblings, 0 replies; 3+ messages in thread
From: Jon Grant @ 2011-06-20 11:17 UTC (permalink / raw)
  To: binutils

Hello Alan

On 28 April 2011 07:04, Alan Modra <amodra@gmail.com> wrote:
> On Tue, Apr 19, 2011 at 01:55:01PM +0100, Jon Grant wrote:
>> I am using a build of ld, v2.20. I would like to exclude the *default*
>> catch all memory address visible in the map file quote below.
>
> If you specify some memory regions, GNU ld will give an error (or
> warning if --no-check-sections) if an output section without an
> address is assigned to the default region.  If you specify an address
> (see ld info Output Section Description) it's assumed you know what
> you're doing.  So I'm wondering why you want anything more than this?


I was kind of expecting "*default*        0x00000000
0xffffffff" to not be visible in the map file when I was specifying my
own mapping.

Not sure why still included, perhaps could be included if there was
some default mapping performed (and that was just a warning rather
than error)

Best regards, Jon

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-06-20 11:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-19 12:55 ld exclusion of *default* memory address mapping Jon Grant
2011-04-28  6:05 ` Alan Modra
2011-06-20 11:17   ` Jon Grant

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).