public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Alan Modra <amodra@gmail.com>
To: "Paulo J. Matos" <pocmatos@gmail.com>
Cc: binutils@sources.redhat.com
Subject: Re: ALIGN and BLOCK in linker scripts
Date: Sun, 23 Jan 2011 03:46:00 -0000	[thread overview]
Message-ID: <20110123034614.GD11253@bubble.grove.modra.org> (raw)
In-Reply-To: <ihc2q3$of4$1@dough.gmane.org>

On Fri, Jan 21, 2011 at 01:47:47PM +0000, Paulo J. Matos wrote:
> What's the different between using ALIGN and BLOCK as an optional in the 
> start of an output section.

There is no difference between the two.

> For some reason without the ALIGN/BLOCK in the start of the output 
> section the linking goes well, but as soon as I add it (either of them) I 
> get "final link failed: File truncated".
> 
> Any tips on what might be wrong above or a way to debug why the link 
> failed (--verbose says nothing)?

You didn't tell us your target or version of ld so it's hard to give
any useful advice.  General debug techniques apply.  Find where the
error message is generated and trace back from that point..

-- 
Alan Modra
Australia Development Lab, IBM

  reply	other threads:[~2011-01-23  3:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-21 13:50 Paulo J. Matos
2011-01-23  3:46 ` Alan Modra [this message]
2011-01-26 17:58   ` Paulo J. Matos
2011-01-28  2:48     ` Alan Modra
2011-01-28 11:31       ` Paulo J. Matos

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=20110123034614.GD11253@bubble.grove.modra.org \
    --to=amodra@gmail.com \
    --cc=binutils@sources.redhat.com \
    --cc=pocmatos@gmail.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).