[Bug binutils/16811] New: Using strip on a sstrip'ed binary corrupts it

2014-04-05 Thread curaga at operamail dot com
y: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: curaga at operamail dot com Created attachment 7533 --> https://sourceware.org/bugzilla/attachment.cgi?id=7533&action=edit Source to the sample binary. Binutils git 115c6d5c37ee7 sstr

[Bug binutils/16811] Using strip on a sstrip'ed binary corrupts it

2014-04-05 Thread curaga at operamail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16811 --- Comment #1 from curaga at operamail dot com --- Created attachment 7534 --> https://sourceware.org/bugzilla/attachment.cgi?id=7534&action=edit Unstripped binary -- You are receiving this mail because: You are on the CC list for

[Bug binutils/16811] Using strip on a sstrip'ed binary corrupts it

2014-04-05 Thread curaga at operamail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16811 --- Comment #2 from curaga at operamail dot com --- Created attachment 7535 --> https://sourceware.org/bugzilla/attachment.cgi?id=7535&action=edit sstripped binary -- You are receiving this mail because: You are on the CC list for

[Bug binutils/16811] Using strip on a sstrip'ed binary corrupts it

2014-04-05 Thread curaga at operamail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16811 --- Comment #3 from curaga at operamail dot com --- Created attachment 7536 --> https://sourceware.org/bugzilla/attachment.cgi?id=7536&action=edit sstripped + stripped binary -- You are receiving this mail because: You are on the

[Bug binutils/16811] Using strip on a sstrip'ed binary corrupts it

2014-04-05 Thread curaga at operamail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16811 --- Comment #6 from curaga at operamail dot com --- Right, I expect an operation such as cd /usr/bin strip -g * to be safe, even if some are sstripped. -- You are receiving this mail because: You are on the CC list for the bug

[Bug ld/16934] New: gc-sections fails to remove unused C++ member functions

2014-05-12 Thread curaga at operamail dot com
Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: curaga at operamail dot com Created attachment 7595 --> https://sourceware.org/bugzilla/attachment.cgi?id=7595&action=edit Tarball of the testcase. This is an enhancement request

[Bug ld/16934] gc-sections fails to remove unused C++ member functions

2014-05-12 Thread curaga at operamail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16934 --- Comment #1 from curaga at operamail dot com --- lib.h: #ifndef FOO_H #define FOO_H class interface { public: virtual void foo() = 0; virtual void bar() = 0; }; interface* getclass(); #endif -- You are receiving this mail

[Bug ld/16934] gc-sections fails to remove unused C++ member functions

2014-05-12 Thread curaga at operamail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16934 --- Comment #3 from curaga at operamail dot com --- app.cpp: #include "lib.h" int main() { interface *i = getclass(); i->bar(); return 0; } -- You are receiving this mail because: You are on the CC lis

[Bug ld/16934] gc-sections fails to remove unused C++ member functions

2014-05-12 Thread curaga at operamail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16934 --- Comment #2 from curaga at operamail dot com --- lib.cpp: #include #include "lib.h" class myclass: public interface { public: void foo() { puts("foo"); } void bar() { puts("bar"); } }; interfac

[Bug ld/16934] gc-sections fails to remove unused C++ member functions

2014-06-18 Thread curaga at operamail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16934 --- Comment #5 from curaga at operamail dot com --- It fails to remove the function foo, which is in its own section _ZN7myclass3fooEv and unused. It still happens on current git, 2.24.51.20140618 or 6a83deeaa804 (Brown paper bag

[Bug ld/16934] gc-sections fails to remove unused C++ member functions

2014-06-18 Thread curaga at operamail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16934 curaga at operamail dot com changed: What|Removed |Added Version|2.23|2.25 (HEAD) -- You are

[Bug ld/16934] gc-sections fails to remove unused C++ member functions

2014-06-19 Thread curaga at operamail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16934 --- Comment #7 from curaga at operamail dot com --- That's why this is an enhancement request :) I'd like to see that sophistication added to the linker. This is needed separately from LTO for various reasons: - use with older comp