Re: Building Ada System DLLs

David Gressett <[email protected]> Sat, 3 Jun 2017 22:37:40 +0000
Newsgroups gmane.comp.gnu.mingw.devel
Message-ID <CY1PR13MB06300ED90B091D4FEE3CAC95D4F40@CY1PR13MB0630.namprd13.prod.outlook.com>
On Saturday, June 3, 2017 2:21 PM, Keith Marshall wrote:
1

>On 03/06/17 16:47, David Gressett wrote:
>>> I note that "make install-strip" does not strip these DLLs; should
>>> it?  (Ditto, for libgcc_s_dw2-1.dll).
>>
>> No, stripping an Ada DLL will cause it to lose its relocatability.

>Why?  I don't understand.  Surely all Windows DLLs are inherently
>relocatable?  Stripping doesn't modify the relocation tables, so why
>would it have any such effect?

It has been several years since I looked at the Gnat user's guide,
so I went back to it to double-check my memory. It is indeed
documented in  the Gnat user's guide that stripping will cause
problems. In section 9.3.5.12 of the Gnat user's guide:

"Note that a relocatable DLL stripped using the strip binutils 
tool will not be relocatable anymore. To build a DLL without
debug information pass -largs -s to gnatdll. This restriction 
does not apply to a DLL built using a Library Project."

I have no idea at present as to whether the part of the  makefile 
that builds the gnat runtime invokes a library project or not;
I would have to dig through the build log to find out, and I have
not done that yet.


- --
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJZMwwjAAoJEMCtNsY0flo/SgwQAI0hgM1656xjqZqIKwWRgzET
W/ZEralDrzXIEzAAOb9+C068LeXs32fBcQMqglIC61E1+lVAqHva3JZn4X9GZJwI
y/Yas9rsEQF7tn8/WLUQBTpgCfGdvQwGvmnMCBBJChGbUaLGIlvtq4+ct9cI0ou6
obt8ZEjH5xfs9AiudkrWdP18TuoeLwykNb9mAYL4le/LZM6fqSeLj1C2X++21ZpT
TnTKSR7ins8GfBaMBg9J/NVZqM5pR3ijSFRKb4tnukCKOJCEzeQ90hKqoTFefc51
9PtG1s8/BCbSsANc0HeNoQUfZDvTV/p4mnPhvIeNaz9HxCVDEx50ws3Hfh9v7gZu
DazxySF0nJdEYLgkyQsEpRNOakMwUwT7OsFkfCIfq0FAKOaonGt0sc63RNfPWnOf
RqcWQ5JKNbuujawduowKULe6b3FUrTsE+145CHu/7WaWH0q3MsDf1aZh4ag9pj6k
F67agvebZ7VHBJbb/xW7P70w+FDtQZM+Mn9nr1B8aNmUFx+JLCMyiSX8umNlIpFv
1XVfFzN1M7MxN1kEHNC7ZGWcU39yXHPajsF91E91W0u/zFg3P4z8FiH6/YI2X+To
SpF0jReAGtU4H59yhaDia/qHcNubkAlwWfT775GP2rpIN/WNEERhd0rM2AslhB2m
7txpPhSUwAZJ04KARSLn
=kuw4
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-dvlpr mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-dvlpr

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot