[Patch 4/6] ARM attributes: defaultless attributes

Andrew Stubbs ams@codesourcery.com
Tue Jan 13 10:02:00 GMT 2009


The attached patch adds a new flag for the attribute type. This flag
indicates that the attribute does not have a default value.

What this means is that, when the tools write the attributes to the
output, they will not suppress the attribute if it has a zero value.
Since attributes only have a type (and therefore a no-default flag) if
they have been read from somewhere, they are still only written if they
are present.

The only attribute that needs this feature is Tag_nodefaults that is
considered set if it exists, and the value is ignored. (Note that that
"no defaults" in its name is a coincidence, and the important thing here
is that the value can be (should be) zero.)

OK?

Andrew

-------------- next part --------------
A non-text attachment was scrubbed...
Name: defaultless-tags.patch
Type: text/x-diff
Size: 4483 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20090113/020a2021/attachment.bin>


More information about the Binutils mailing list