Re: Building Ada System DLLs

Keith Marshall <[email protected]> Sun, 4 Jun 2017 00:10:43 +0100
Newsgroups gmane.comp.gnu.mingw.devel
Organization MinGW Project
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/06/17 23:37, David Gressett wrote:
> 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."

As a professional engineer, I'm conditioned to treat such claims with 
suspicion; it's inconsistent with the behaviour I see for every other 
regular DLL built for Windows, so I'd like to see concrete evidence in 
support of the claim.

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

What does that mean?  The makefile rules to build libgnat-6.dll, and 
libgnarl-6.dll, don't use gnatdll; they use "gcc -shared ...", just as 
any C language (or indeed any other language) DLL is built, and such 
DLLs don't cease to be relocatable when stripped.

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

Viewing my build.log in "less", and searching with "/libgna[tr]l*-6", 
is sufficient to show me those "gcc -shared ..." commands, and takes 
only a few seconds.

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

iQIcBAEBAgAGBQJZM0HzAAoJEMCtNsY0flo/2pQP+gJ589yhEvCBxNZQTv83hlLA
qiCwcu6MZ/v9d1ENZPk+ZM/eZrWbVoXa+jmjvV3341ZbqTPJRwZ036+gGHupSnqg
BZ0Gp1Nm7Aoe1KyxOvwkuQYIE6Fd+w95FXriAbIWcmM3ab0jYCngeBwcUO//3pyT
TrnRZJmORke7Ihz/r7vRVvDwxvbc/W2rrkABZDaXia516PtQyzn5Eb2+24i3JGt5
vx5wPAGpgd4ZQ+c1z8Y00JLI1bT/FOjBrlHjUsmD3PtN+0K/+aAcN/UZuZVcYHI2
C4OVql8VnNLTabEmRP8MO2ImnlpM1F/usrSMVqYHHzhMui1QlJULZV51fI8mvVzU
Gl9e4+7MdNxwemzIIddGUvXwlO3dBsxaWrUj1mnL+MJNnGfu6N9BfrVNQGZZ7nZw
UFUD0e1S33RVytYrh8JCU4/U2dL5R2cOTIOBH5lc17EjKJ2UQB/ZYu4+MaeMl3me
wlRO0S4JmAVJlRA/wRAmntu8S+J6kUC26r2fF1g79niNE25mzJJsqOfGasyQsSw3
CbgmQkYjwbbgPbyhGgdNm9vgJvGmN133fn/9ScpBXoPYmwZlQtym3MXK9Powkm65
SgfpWdYAOyFnf3cm25BEXSBw4PqXySLX0a+gBS5xN22GKAAU9+Bmh5Ch4CEn3Yya
Zvpk1hY49Qd25U8CXkPo
=SaP7
-----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