diff options
| author | Eric Botcazou <ebotcazou@adacore.com> | 2025-12-08 17:47:56 +0100 |
|---|---|---|
| committer | Eric Botcazou <ebotcazou@adacore.com> | 2025-12-08 17:50:45 +0100 |
| commit | 3777a0b41f9fdcbb5fde4bdfce06031805cebc33 (patch) | |
| tree | 856e6337b8b7089e521a9323c61d870de02cfc1f /libjava/classpath/java/sql | |
| parent | 76fc22a292ad652338be21b7ff4a767ddb3d7015 (diff) | |
| download | gcc-3777a0b41f9fdcbb5fde4bdfce06031805cebc33.zip gcc-3777a0b41f9fdcbb5fde4bdfce06031805cebc33.tar.gz gcc-3777a0b41f9fdcbb5fde4bdfce06031805cebc33.tar.bz2 | |
MinGW: Fix native TLS bug with -fdata-sections
The problem comes from a quirk of the GNU PE-COFF linker, which wants
to make sure that .tls$ZZZ is laid out last among the TLS sections,
but first globs all .tls$* sections together. The solution matches
Clang's output.
gcc/
PR target/80881
* config/mingw/winnt.cc (mingw_pe_unique_section): Put two dollar
signs for TLS sections after the prefix.
(mingw_pe_asm_named_section): Deal with all TLS sections uniformly.
gcc/testsuite/
* gcc.dg/tls/data-sections-1.c: New test.
Diffstat (limited to 'libjava/classpath/java/sql')
0 files changed, 0 insertions, 0 deletions
