ARM attribute merging oddity
Mon Mar 23 16:21:00 GMT 2009
On Mon, 2009-03-23 at 11:02 +0000, Andrew Stubbs wrote:
> On 20/03/09 18:03, Daniel Jacobowitz wrote:
> > On Fri, Mar 20, 2009 at 09:38:20AM +0000, Andrew Stubbs wrote:
> >> I think any process that messes with attributes for files that are not
> >> being changed is wrong (i.e. one input -> one output).
> > They are being changed though - they're being linked.
> If there's only one input to the link (i.e. we're using a linker script
> to mess with sections or addresses, perhaps), then it's reasonable to
> assume that all the input attributes also apply to the outputs.
Mostly. However, it might be possible to infer attributes from commmand
line arguments. For example, specifying a specific CPU would imply the
architecture wanted in the output; adding an object that used a later
architecture would then probably be an error.
More information about the Binutils