[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-03-26 Thread petechou at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #23 from pete 2013-03-26 08:01:28 UTC --- Created attachment 6949 --> http://sourceware.org/bugzilla/attachment.cgi?id=6949 Android libc.so w/o __exidx_start/end Hello Ian, I find one issue with the patch in comment #13: Unabl

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-03-24 Thread petechou at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #22 from pete 2013-03-25 03:56:32 UTC --- (In reply to comment #21) > I don't see why either of your suggested changes would be correct. > > Would you mind trying my patch, the second one in comment #13, to see if it > fixes your

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-03-24 Thread ian at airs dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #21 from Ian Lance Taylor 2013-03-24 22:26:50 UTC --- I don't see why either of your suggested changes would be correct. Would you mind trying my patch, the second one in comment #13, to see if it fixes your problem? Thanks. --

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-03-20 Thread petechou at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #20 from pete 2013-03-21 05:05:21 UTC --- (In reply to comment #19) > The in_reg() and in_dyn() functions are not mutually exclusive. Both will > return true if a symbol appears in both a regular object and a dynamic object. I th

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-03-20 Thread ian at airs dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #19 from Ian Lance Taylor 2013-03-20 12:27:58 UTC --- The in_reg() and in_dyn() functions are not mutually exclusive. Both will return true if a symbol appears in both a regular object and a dynamic object. -- Configure bugmail:

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-03-19 Thread petechou at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #18 from pete 2013-03-20 06:20:57 UTC --- Sorry! Yours is correct. Forget about this. (In reply to comment #17) > > And we should return NULL if oldsym->in_reg() is true instead? > > if (oldsym == NULL) > return NULL;

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-03-19 Thread petechou at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #17 from pete 2013-03-20 05:54:20 UTC --- (In reply to comment #16) > (In reply to comment #15) > > I think that is what my patch does. Did I get it wrong? And we should return NULL if oldsym->in_reg() is true instead? if (o

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-03-19 Thread petechou at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #16 from pete 2013-03-20 05:38:56 UTC --- (In reply to comment #15) > I think that is what my patch does. Did I get it wrong? I'm thinking the patch does the same thing as mine. I have 2 questions: 1. in_reg() and in_dyn() seem

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-03-19 Thread ian at airs dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #15 from Ian Lance Taylor 2013-03-20 04:44:36 UTC --- I think that is what my patch does. Did I get it wrong? I think it probably makes sense in general to create an only_if_ref linker-defined symbol if there is a ref in the regu

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-03-19 Thread dougkwan at google dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #14 from Doug Kwan 2013-03-20 04:41:03 UTC --- The special symbols in question __exidx_{start,end} were exported from DSO's by mistake in both ld & gold and the mistake has been fixed in both linkers. We really don't want referenc

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-03-19 Thread ian at airs dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #13 from Ian Lance Taylor 2013-03-20 03:32:47 UTC --- oldsym->in_dyn() will return true if the symbol was seen in a dynamic object. I don't see why we should create the symbol if it is seen in a dynamic object. It seems that the

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-03-19 Thread ian at airs dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #12 from Ian Lance Taylor 2013-03-20 03:29:49 UTC --- oldsym->in_dyn() will return true if the symbol was seen in a dynamic object. I don't see why we should create the symbol if it is seen in a dynamic object. It seems that the

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-03-19 Thread petechou at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #11 from pete 2013-03-20 02:04:21 UTC --- Hello Ian, Would you please comment on the issue and patch? - Thanks, Pete (In reply to comment #10) > I have no object to what is proposed but the decision is Ian's. > > On Tue, Mar 12

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-03-12 Thread dougkwan at google dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #10 from Doug Kwan 2013-03-13 03:57:35 UTC --- I have no object to what is proposed but the decision is Ian's. On Tue, Mar 12, 2013 at 7:03 PM, petechou at gmail dot com wrote: > http://sourceware.org/bugzilla/show_bug.cgi?id=152

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-03-12 Thread petechou at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #9 from pete 2013-03-13 02:03:32 UTC --- If there is a libfoo.so, it's possible to implement part of functions in libfoo.so and then link against libfoo.so again to produce a new library. I think the "linker-defined" symbols should

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-03-07 Thread dougkwan at google dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #8 from Doug Kwan 2013-03-07 08:10:16 UTC --- Hi Pete, 1. My concern of your patch is that it affects all targets, not just ARM. While it may fix the problem on ARM, I cannot speak for authors of other backends. 2. I am don't hav

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-03-06 Thread petechou at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #7 from pete 2013-03-07 06:43:08 UTC --- I can think visibility does matter, but only for exporting the symbol or not. In the previous case, gold does define the __bss symbols but not use the definition in DSO, so I think we should

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-03-06 Thread dougkwan at google dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #6 from Doug Kwan 2013-03-07 05:42:20 UTC --- The symbols do not have same visibility. gold in general is compatible with GNU ld. If you look at src/ld/emulparams/, you will set that the __bss symbols are exported but the __exidx

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-03-06 Thread petechou at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #5 from pete 2013-03-07 05:31:25 UTC --- (In reply to comment #4) > The symbols __exidx_end & __exidx_start were exported incorrectly in > the past. This is fixed in both ld & gold in the sense that these > symbols are defined by n

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-03-06 Thread dougkwan at google dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #4 from Doug Kwan 2013-03-07 04:04:35 UTC --- The symbols __exidx_end & __exidx_start were exported incorrectly in the past. This is fixed in both ld & gold in the sense that these symbols are defined by not exported. I think def

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-03-06 Thread petechou at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #3 from pete 2013-03-07 02:39:59 UTC --- Hello, Let me describe this issue again. The runtime undefined reference is because: 1. Using ld.gold to link against libraries (say libc.so) in android ndk-r8, and those libraries are prob

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-02-26 Thread ian at airs dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 Ian Lance Taylor changed: What|Removed |Added CC||dougkwan at google dot com -- Conf

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-02-25 Thread petechou at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #2 from pete 2013-02-26 03:52:31 UTC --- Created attachment 6898 --> http://sourceware.org/bugzilla/attachment.cgi?id=6898 a possible fix -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You a

[Bug gold/15200] Runtime undefined reference to __exidx_start/_end

2013-02-25 Thread petechou at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=15200 --- Comment #1 from pete 2013-02-26 03:51:18 UTC --- Created attachment 6897 --> http://sourceware.org/bugzilla/attachment.cgi?id=6897 Android libc.so -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You