[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2024-03-05 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=11539

Sam James  changed:

   What|Removed |Added

 CC||sam at gentoo dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2016-02-23 Thread steve at sk2 dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=11539

Stephen Kitt  changed:

   What|Removed |Added

 CC||steve at sk2 dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2015-12-12 Thread daniel.f.starke at freenet dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=11539

Daniel Starke  changed:

   What|Removed |Added

 CC||daniel.f.starke at freenet dot 
de

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2015-08-19 Thread ard.biesheuvel at linaro dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=11539

Ard Biesheuvel ard.biesheuvel at linaro dot org changed:

   What|Removed |Added

 CC||ard.biesheuvel at linaro dot 
org

--- Comment #18 from Ard Biesheuvel ard.biesheuvel at linaro dot org ---
I have given this a spin with building the OVMF firmware (EDK2/Tianocore)

http://www.tianocore.org/edk2/

In my case, I need to pass -fno-asynchrounous-unwind-tables to actually get
some noticeable improvement, since the unwind info seems to hold some live
references to code that is otherwise unused. But with that added, it works
beautifully.

(using GCC 4.9.3 + binutils-gdb 7.10 branch)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2015-07-03 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=11539

--- Comment #14 from Nick Clifton nickc at redhat dot com ---
Hi Eduardo,

(In reply to Eduardo Luis Marcovecchio from comment #12)
 Please, no news on this subject yet?  


Sorry for dropping the ball on this one.

Unfortunately I do not have an easy way of testing COFF/PE binaries at the
moment, so I am going to ask for your help.  I have checked in Kai's patch to
the mainline binutils sources on an experimental basis.  Please could you try
it out and if/when you encounter problems, please could you file them here.  A
testcase to reproduce the problem would be very helpful, as would the output
from the linkers --print-gc-sections option.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2015-07-03 Thread vanboxem.ruben at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=11539

--- Comment #16 from vanboxem.ruben at gmail dot com ---
I would say Qt and Boost could also be used as a testbed. Qt doesn't have a
test suite though, but I guess compiling the examples might be a first
indication. Boost has a test suite.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2015-07-03 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=11539

--- Comment #17 from Nick Clifton nickc at redhat dot com ---
(Just FYI - I am going to be on vacation next week, so I will not be able to
respond to bug reports until the week after ...)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2015-07-03 Thread eduardo.marcovecchio at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=11539

--- Comment #15 from Eduardo Luis Marcovecchio eduardo.marcovecchio at gmail 
dot com ---
Thanks a lot, Nick!

I will do that as soon as possible, probably recompiling wxWidgets with
-ffunction-sections and -fdata-sections, then linking a simple app with -Wl and
--gc-sections enabled.

If anyone has suggestions on other libs to test, I will be glad to test with
them too.

Eduardo

-- 
You are receiving this mail because:
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2015-07-02 Thread eduardo.marcovecchio at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=11539

Eduardo Luis Marcovecchio eduardo.marcovecchio at gmail dot com changed:

   What|Removed |Added

 CC||eduardo.marcovecchio@gmail.
   ||com

--- Comment #12 from Eduardo Luis Marcovecchio eduardo.marcovecchio at gmail 
dot com ---
Please, no news on this subject yet? I'm sure this is a very important feature
for us Windows GCC users (MingW / TDM), and I would help if I had the
knowledge. 

We have tons of people on the internet talking about how GCC ports to Windows
generate bloated code in comparison to MSVC, and this single implementation
would help a lot, mainly on projects linked against big libs, like wxWidgets,
QT and others.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2014-05-28 Thread schwab at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=11539

Andreas Schwab schwab at sourceware dot org changed:

   What|Removed |Added

 CC|jackie.rosen at hushmail dot com   |

-- 
You are receiving this mail because:
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2014-02-16 Thread jackie.rosen at hushmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=11539

Jackie Rosen jackie.rosen at hushmail dot com changed:

   What|Removed |Added

 CC||jackie.rosen at hushmail dot 
com

--- Comment #11 from Jackie Rosen jackie.rosen at hushmail dot com ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2013-10-17 Thread asmwarrior at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=11539

asmwarrior asmwarrior at gmail dot com changed:

   What|Removed |Added

 CC||asmwarrior at gmail dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2013-10-17 Thread puetzk at puetzk dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=11539

Kevin Puetz puetzk at puetzk dot org changed:

   What|Removed |Added

 CC||puetzk at puetzk dot org

--- Comment #10 from Kevin Puetz puetzk at puetzk dot org ---
Found several discussions linking to this page, but none mentioning a somewhat
newer patch posted at https://sourceware.org/ml/binutils/2012-08/msg00386.html.
Adding that link here for any future readers...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2013-08-19 Thread damian at veritymedical dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11539

Damian Kaczmarek damian at veritymedical dot com changed:

   What|Removed |Added

 CC||damian at veritymedical dot com

--- Comment #9 from Damian Kaczmarek damian at veritymedical dot com ---
I was dissatisfied with my DLL size being an order of magnitude bigger than it
should be and the search lead me to this bug report. I have just tried the
provided patch with binutils-2.23.2 and the initial builds of my statically
linked DLL failed with a section named COMMON missing. I have changed the
cofflink.c to exclude this section from removal and it finally built. However,
the functions from my DLL crash so probably something got badly removed. After
debugging the removal process by -Wl,--print-gc-sections I also prevented
.eh_frame from removal but my application still crashed. At this point I feel
only despair as COFF is basically black magic to me. Does anybody work on this
feature or have more up to date patches? I would happily do some testing and/or
help in other ways.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2012-08-14 Thread nickc at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11539

Nick Clifton nickc at redhat dot com changed:

   What|Removed |Added

 CC||nickc at redhat dot com

--- Comment #8 from Nick Clifton nickc at redhat dot com 2012-08-14 15:45:09 
UTC ---
test

-- 
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.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2011-10-24 Thread xunxun1982 at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11539

--- Comment #6 from xunxun xunxun1982 at gmail dot com 2011-10-24 09:28:59 
UTC ---
It seems to dll build can't use the patches, even if using
-Wl,--undefined=_DllMainCRTStartup. Though the dll is generated successfully,
we can't use other exes to link the dll (running the exe can't show anything). 
How do we make the patches generate the dll correctly?

-- 
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.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2011-10-23 Thread xunxun1982 at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11539

xunxun xunxun1982 at gmail dot com changed:

   What|Removed |Added

 CC||xunxun1982 at gmail dot com

-- 
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.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2011-10-04 Thread shinji.igarashi at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11539

--- Comment #5 from Shinji Igarashi shinji.igarashi at gmail dot com 
2011-10-05 03:42:15 UTC ---
Created attachment 5960
  -- http://sourceware.org/bugzilla/attachment.cgi?id=5960
Add KEEPs to the linker script template

Very nice. The patch saves me from some boring works splitting source files per
function.

- entry symbol
I think -Wl,-e works and is better than -Wl,--undefined in this case.

For PE-COFF targets, the default entry symbol is used according to the
subsystem,
unless explicitly specified by a command-line or a linker script.
And the code setting the gc root (search gc_sym_list in ldlang.c) ignores the
linker's default.
MinGW-GCC's default specs file gives -e option to the linker only if the
generating file is a DLL, so for now the linker's default is used for EXE
unless you specify the explicit one.

I don't know whether ignoring the default entry symbol makes sense.
Anyway the current manual says --gc-sections requires -Wl,-e or -Wl,-u
or using KEEPs in a linker script to keep sections.

- .rsrc section
Default linker scripts(generated from pe.sc) lack KEEP commands.
The attached patch may fix it.

-- 
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.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2011-06-30 Thread realnc at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11539

--- Comment #4 from Nikos Chantziaras realnc at gmail dot com 2011-07-01 
00:31:11 UTC ---
I found problem with the patch: it will remove the .rsrc section too.  This
section should be kept, as it contains the application icon, version
information, etc.

-- 
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.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2011-06-15 Thread realnc at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11539

Nikos Chantziaras realnc at gmail dot com changed:

   What|Removed |Added

 CC||realnc at gmail dot com

--- Comment #3 from Nikos Chantziaras realnc at gmail dot com 2011-06-16 
00:08:17 UTC ---
This is very useful. A static Qt binary gets from 12MB to 8MB with this.

-- 
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.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2011-05-18 Thread vanboxem.ruben at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11539

vanboxem.ruben at gmail dot com changed:

   What|Removed |Added

 CC||ktietz70 at googlemail dot
   ||com

-- 
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.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2011-05-14 Thread vanboxem.ruben at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11539

vanboxem.ruben at gmail dot com changed:

   What|Removed |Added

 Target|i686-pc-mingw32 |*-*-mingw32
 CC||vanboxem.ruben at gmail dot
   ||com
   Host|i686-pc-mingw32 |*-*-mingw32
  Build|i686-pc-mingw32 |

--- Comment #2 from vanboxem.ruben at gmail dot com 2011-05-14 10:45:47 UTC ---
I changed the Host/Target/Build to include x86_64 and removed the Build
specification, because it's not relevant.

-- 
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.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2011-03-12 Thread sourceware at jf dot hanne.name
http://sourceware.org/bugzilla/show_bug.cgi?id=11539

--- Comment #1 from sourceware at jf dot hanne.name 2011-03-12 14:21:54 UTC ---
Created attachment 5301
  -- http://sourceware.org/bugzilla/attachment.cgi?id=5301
implement --gc-sections for coff (first shot)

- Mostly a copy and paste from elflink.c to cofflink.c
- This is only a first try; however, it reduces the size of a statically
compiled wxWidgets app from 5.1 MB to 3.8 MB, so it does something useful for
me; YMMV
- I’m by far no COFF export; some linker guru will need to review the patch and
comment on all the FIXME comments
- I have not yet tried to generate a DLL with gc enabled
- Somehow the entry symbol does not get into _bfd_coff_gc_keep so no gc mark
root is available; as a workaround, -Wl,--undefined=_WinMainCRTStartup should
be used

-- 
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.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2010-10-26 Thread patrick.hanevold at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11539

Patrick Hanevold patrick.hanevold at gmail dot com changed:

   What|Removed |Added

 CC||patrick.hanevold at gmail
   ||dot com

-- 
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.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2010-09-28 Thread gillou dot ray at free dot fr


-- 
   What|Removed |Added

 CC||gillou dot ray at free dot
   ||fr


http://sourceware.org/bugzilla/show_bug.cgi?id=11539

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.

___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/11539] ld --gc-sections should work for PE-COFF on MinGW

2010-04-27 Thread hjl dot tools at gmail dot com


-- 
   What|Removed |Added

 CC||hjl dot tools at gmail dot
   ||com


http://sourceware.org/bugzilla/show_bug.cgi?id=11539

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils