public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Andrew Reusch <andrew.reusch@wiline.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Advice about a problem compiling with alternative toolchain
Date: Wed, 15 Dec 2004 10:47:43 -0500	[thread overview]
Message-ID: <41C05C9F.2070502@wiline.com> (raw)
In-Reply-To: <41BF42A6.4030102@wiline.com>

Just to follow up. I was able to get the toolchain I built, gcc-3.3.3 
and binutil 2.14.90.0.6, to compile u-boot.bin by modifying linker 
script, board/a3000/u-boot.lds.

--- u-boot.lds  2003-06-27 17:31:56.000000000 -0400
+++ u-boot.lds.bak      2004-12-15 10:39:49.000000000 -0500
@@ -70,6 +70,7 @@
     . = ALIGN(16);
     *(.rodata)
     *(.rodata1)
+    *(.rodata.str1.4)
   }
   .fini      : { *(.fini)    } =0
   .ctors     : { *(.ctors)   }


Apparently, the toolchain I built wasn't handling the .rodata.str1.4 
section correctly, it wasn't being subsumed into the .text section. 
Instead it was at some low address. This caused the objcopy command to 
try and pad a large number of bytes. I'm still curious as to why the 
toolchain in ELDK-3.1 was able to build the u-boot.bin file without this 
change in the linker script. Whose responsibility is it to properly 
handle the reallocation of the ".rodata.str1.4" section? Is that a 
proper question?

regards,
Andrew

  reply	other threads:[~2004-12-15 15:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-14 16:22 [U-Boot-Users] Advice about a problem compiling with alternative toolchain Andrew Reusch
2004-12-14 16:43 ` Wolfgang Denk
2004-12-14 19:04   ` Andrew Reusch
2004-12-14 19:24     ` Wolfgang Denk
2004-12-14 19:44       ` Andrew Reusch
2004-12-15 15:47         ` Andrew Reusch [this message]
2004-12-15 18:29           ` Andrew Reusch
2004-12-15 18:39             ` Wolfgang Denk

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=41C05C9F.2070502@wiline.com \
    --to=andrew.reusch@wiline.com \
    --cc=u-boot@lists.denx.de \
    /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