This is the mail archive of the mailing list for the GCC 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]

[PATCH] don't use .gnu.attributes on vxworks

The attached patch fixes a mismatch between recent versions of binutils
and the Diab toolchain for VxWorks.  Recent versions of binutils include
support for producing .gnu.attributes sections and recent versions of
gcc include support for emitting the appropriate directives.

However, the Diab linker does not recognize .gnu.attributes and
therefore errors when attempting to link objects with .gnu.attributes
sections.  This patch takes the simplest approach to solving the
problem, which is to #undef HAVE_AS_GNU_ATTRIBUTE in vxworks.h.

The patch also corrects a long-standing typo: the appropriate option to
pass through to the linking process is '-v', not '-V'.

Tested by building the compiler and verifying that generated executables
no longer contain .gnu.attributes, whereas they did before.  OK?


2007-07-23  Nathan Froyd  <>

	* config/vxworks.h (VXWORKS_LINK_SPEC): Fix typo.

Attachment: gnu-attributes.patch
Description: Text document

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