win: non-static libssp in libbitcoinconsensus DLL #28104

issue fanquake openend this issue on July 19, 2023
  1. fanquake commented at 11:18 am on July 19, 2023: member

    If you Guix build for Windows, and call objdump on libbitcoinconsensus-0.dll, you’ll find it uses a non-static libssp:

     0objdump -x src/.libs/libbitcoinconsensus-0.dll
     1...
     2The Import Tables (interpreted .idata section contents)
     3 vma:            Hint    Time      Forward  DLL       First
     4                 Table   Stamp     Chain    Name      Thunk
     5 00263000	00263050 00000000 00000000 0026409c 00263490
     6
     7	DLL Name: libssp-0.dll
     8	vma:  Hint/Ord Member-Name Bound-To
     9	2638d0	    3  __memcpy_chk
    10	2638e0	    7  __stack_chk_fail
    11	2638f4	    8  __stack_chk_guard
    

    DLLs should be built with a static libgcc/stdc++/ssp:

    https://github.com/bitcoin/bitcoin/blob/84c5416b03248c91aa7efe46555699f9f121d8a4/configure.ac#L724-L730

    This has been an issue since we switched to using Guix for the 22.0 release.

  2. fanquake added the label Windows on Jul 19, 2023
  3. fanquake added the label Build system on Jul 19, 2023
  4. fanquake closed this on Nov 22, 2023

  5. Julio-Rats referenced this in commit 5d13b9586e on Jan 26, 2024
  6. bitcoin locked this on Nov 21, 2024

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-21 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me