[Bug ld/26551] A definition referenced by an unneeded (--as-needed) shared object should be exported

2020-09-02 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26551 --- Comment #11 from H.J. Lu --- (In reply to Fangrui Song from comment #10) > (In reply to Michael Matz from comment #9) > > I filed the bug not to find an alternative solution. I am wary of the > semantics of --export-dynamic, --dynamic-lis

[Bug ld/26551] A definition referenced by an unneeded (--as-needed) shared object should be exported

2020-09-02 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=26551 --- Comment #10 from Fangrui Song --- (In reply to Michael Matz from comment #9) I filed the bug not to find an alternative solution. I am wary of the semantics of --export-dynamic, --dynamic-list (and contributed the recent --export-dynamic-

[Bug binutils/26520] "objdump: DWARF error: could not find variable specification at offset ..." when generating assembly listing of .elf file containing symbols from libstdc++.a

2020-09-02 Thread frank.mehnert at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26520 Frank Mehnert changed: What|Removed |Added CC||frank.mehnert at gmail dot com --- Co

[Bug ld/26551] A definition referenced by an unneeded (--as-needed) shared object should be exported

2020-09-02 Thread matz at suse dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=26551 --- Comment #9 from Michael Matz --- I think ld.bfd is completely fine to not export exe symbols only referenced by mentioned but not otherwise needed libraries. It's follows from traditional behaviour that executables don't export any symbol

[Bug ld/26551] A definition referenced by an unneeded (--as-needed) shared object should be exported

2020-09-02 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26551 --- Comment #8 from H.J. Lu --- (In reply to Fangrui Song from comment #7) > > >a.c < #include > int foo() { return 42; } > int main() { >void *h = dlopen("./b.so", RTLD_LAZY); >int (*bar)(void) = dlsym(h, "bar"); >return bar(