This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ALIGN and BLOCK in linker scripts


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]