This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ALIGN and BLOCK in linker scripts
- From: Alan Modra <amodra at gmail dot com>
- To: "Paulo J. Matos" <pocmatos at gmail dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Sun, 23 Jan 2011 14:16:14 +1030
- Subject: Re: ALIGN and BLOCK in linker scripts
- References: <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