mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Michal Simek <monstr@seznam.cz>
To: Linux Kernel list <linux-kernel@vger.kernel.org>
Subject: Linker script
Date: Mon, 25 Aug 2008 10:49:25 +0200	[thread overview]
Message-ID: <48B27215.3080808@seznam.cz> (raw)

Hi all,

I am solving one merging issue and I would appreciate if someone can help me
with one problem I have.

We have in vmlinux.lds.S specify two memory regions because we use main memory
and bram memory which is faster.

MEMORY {
	ERAM	: ORIGIN = CONFIG_XILINX_ERAM_START,
		  LENGTH = CONFIG_XILINX_ERAM_SIZE
#if defined(CONFIG_XILINX_LMB_START) && defined(CONFIG_USE_BRAM)
	LMB	: ORIGIN = CONFIG_XILINX_LMB_START,
		  LENGTH = CONFIG_XILINX_LMB_SIZE
#endif
}

And then we have special section for it which is copied to proper place in
startup sequence.

       .bram : {
		/* Skip past interrupt, exception and debug vectors.  If you
		   change this, also change the 0x40 (word) offset in
		   kernel/setup.c:pingpong_bram()  */
               . = 0x100;
               _bram_load_start = . ;
               *(.bram*)               /* Everything */
               *(.bram.text)
               *(.bram.data)
               _bram_load_end = . ;
       } > LMB AT > ERAM

This concept work well but I would like to remove all reference which pointed to
memory regions and of course regions because I would like to use generic macros
which is in asm-generic/vmlinux.lds.h (especially RODATA).

I found that is possible to add memory location after name of section but this
seems work only without included data.
.name mem_lock {

}

When the data is there objcopy announced that section is too big for creating
linux.bin file. :-(

Is there any way how is possible to do it?

Thanks for any hit,
Best regards,
Michal Simek

                 reply	other threads:[~2008-08-25  9:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48B27215.3080808@seznam.cz \
    --to=monstr@seznam.cz \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®