[Bug ld/13683] New: usage tracking by --gc-sections ignores a --defsym mapping

2012-02-11 Thread dkinzer at zbasic dot net
http://sourceware.org/bugzilla/show_bug.cgi?id=13683 Bug #: 13683 Summary: usage tracking by --gc-sections ignores a --defsym mapping Product: binutils Version: 2.19 Status: NEW Severity: normal Prior

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

2012-02-11 Thread dkinzer at zbasic dot net
http://sourceware.org/bugzilla/show_bug.cgi?id=13683 --- Comment #1 from Don Kinzer 2012-02-11 21:19:32 UTC --- Created attachment 6209 --> http://sourceware.org/bugzilla/attachment.cgi?id=6209 test case makefile -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --

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

2012-02-11 Thread dkinzer at zbasic dot net
http://sourceware.org/bugzilla/show_bug.cgi?id=13683 --- Comment #2 from Don Kinzer 2012-02-11 21:19:59 UTC --- Created attachment 6210 --> http://sourceware.org/bugzilla/attachment.cgi?id=6210 test case C source -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --

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

2012-02-14 Thread dkinzer at zbasic dot net
http://sourceware.org/bugzilla/show_bug.cgi?id=13683 --- Comment #5 from Don Kinzer 2012-02-14 21:36:11 UTC --- Thanks for the quick response on this. The version of avr-ld that I am using is part of the WinAVR_20100110 release but I'll see if I can build the equivalent avr-ld from sources+patc

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

2012-02-15 Thread dkinzer at zbasic dot net
http://sourceware.org/bugzilla/show_bug.cgi?id=13683 --- Comment #8 from Don Kinzer 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 f