This is the mail archive of the gcc-patches@gcc.gnu.org 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] |
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? -Nathan 2007-07-23 Nathan Froyd <froydnj@codesourcery.com> gcc/ * config/vxworks.h (VXWORKS_LINK_SPEC): Fix typo. (HAVE_AS_GNU_ATTRIBUTE): Undefine.
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] |