[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/13683] usage tracking by --gc-sections ignores a --defsym mappin

From: dkinzer at zbasic dot net
Subject: [Bug ld/13683] usage tracking by --gc-sections ignores a --defsym mapping
Date: Wed, 15 Feb 2012 16:48:20 +0000


--- Comment #8 from Don Kinzer <dkinzer at zbasic dot net> 2012-02-15 16:48:20 
UTC ---
I back-ported the patch to ld 2.19.1.  In doing so, I had to modify the patch
slightly because that version of the source doesn't have the function
exp_defsym().  I created a similar function and changed the yacc grammar action
to invoke it when the --defsym option is seen.

In testing, I can see that a defsym_node structure is created and put on the
defsym_list list.  Further, that single node is processed when
ldexp_rerun_defsyms() is called and the two conditions therein are true
allowing exp_fold_tree() to be called.  This all suggests that I've patched my
version correctly but the resulting executable image is the same as before:

000000c8 <main>:
  c8:    9b df           rcall    .-202        ; 0x0 <__vectors>
  ca:    ff cf           rjmp    .-2          ; 0xca <main+0x2>

If it works on your version of ld then it appears that there may be other
changes required for v2.19.1.


Don Kinzer

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]