Re: http://dir.gmane.org/gmane.comp.gnu.mingw.msys - error 522

Eli Zaretskii <eliz-mXXj517/[email protected]>
Newsgroups gmane.comp.gnu.mingw.user
Message-ID <[email protected]>
> Date: Tue, 02 Jul 2019 23:09:07 +1000
> From: David Wall <[email protected]>
> 
> I was trying to check the archives to see if this particular problem had been previously reported 
> but keep getting a 522 error (have tried multiple times today with same result.

What is this 522 error? is it related to invoking strip.exe, and if it
is, how?  I'm confused about this aspect of your description.

> I only use mingw/msys to generate a compiler & runtime for GnuCOBOL (part of Gnu).
> 
> The problem I am having is that there is a 'strip.exe' command at the end which is supposed to
> eliminate a lot of the unneeded stuff generated by gcc.
> 
> Out of 300 programs (.exe .dll & .a) sent thru strip.exe - only 10 ever get changed in size
> amounting to a size saving of about 1% on the whole lot.
> 
> Is this normal or is it standard.

If the compilations use the -s switch and/or don't use the -g switch,
then yes, this could be normal.  The lack of those switches means that
debugging symbols are not written into the executables, and -s causes
the linker to strip the executable as it is produced.

Btw, never say "strip SOMETHING.dll", always use the --strip-unneeded
switch when stripping a DLL.  Otherwise, you will strip the symbols
the dynamic linker needs to load the DLL at run time.  Only *.exe
files can be stripped without any command-line options to strip.exe.

_______________________________________________
MinGW-Users mailing list
[email protected]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.osdn.me/mailman/listinfo/mingw-users
Also: mailto:[email protected]?subject=unsubscribe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.