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: PR 12001, --defsym


On Thu, Jan 13, 2011 at 05:16:45AM -0800, H.J. Lu wrote:
> Where is LD_FEATURE implemented? Is __ld_compatibility still supported?
> Do we have testcases for new features? Is linker document up to date?

The followup patch should answer most of these questions.  I tested
LD_FEATURE with the following, and am considering applying this.

Index: ld/scripttempl/elf.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/elf.sc,v
retrieving revision 1.105
diff -u -p -r1.105 elf.sc
--- ld/scripttempl/elf.sc	15 Dec 2010 14:56:38 -0000	1.105
+++ ld/scripttempl/elf.sc	13 Jan 2011 13:41:14 -0000
@@ -302,6 +302,7 @@ else
 fi
 
 cat <<EOF
+LD_FEATURE("SANE_EXPR")
 OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}",
 	      "${LITTLE_OUTPUT_FORMAT}")
 OUTPUT_ARCH(${OUTPUT_ARCH})

-- 
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]