Thread overview
[Issue 24131] ImportC, Linux: TLS transition from R_X86_64_TLSGD to R_X86_64_TPOFF32 failed with -inline
Sep 02, 2023
Jeffrey H. Johnson
Sep 05, 2023
Walter Bright
Sep 05, 2023
Jeffrey H. Johnson
Sep 05, 2023
Jeffrey H. Johnson
Sep 09, 2023
Walter Bright
September 02, 2023
https://issues.dlang.org/show_bug.cgi?id=24131

Jeffrey H. Johnson <trnsz@pobox.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trnsz@pobox.com

--
September 05, 2023
https://issues.dlang.org/show_bug.cgi?id=24131

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
The thing to do to make this reproducible is to create a .c file and compile it with both gcc and ImportC, and look to see if the relocations for sir_te is different between them.

--
September 05, 2023
https://issues.dlang.org/show_bug.cgi?id=24131

--- Comment #2 from Jeffrey H. Johnson <trnsz@pobox.com> ---
(In reply to Walter Bright from comment #1)
> The thing to do to make this reproducible is to create a .c file and compile it with both gcc and ImportC, and look to see if the relocations for sir_te is different between them.

gcc.txt:0000000000000182 R_X86_64_TPOFF32  sir_te gcc.txt:000000000000018f R_X86_64_TPOFF32  sir_te+0x0000000000000108 gcc.txt:000000000000019c R_X86_64_TPOFF32  sir_te+0x0000000000000110 gcc.txt:00000000000001a7 R_X86_64_TPOFF32  sir_te+0x0000000000000118 gcc.txt:00000000000001d4 R_X86_64_TPOFF32  sir_te+0x0000000000000004 gcc.txt:00000000000001e3 R_X86_64_TPOFF32  sir_te gcc.txt:0000000000000218 R_X86_64_TPOFF32  sir_te gcc.txt:00000000000004b3 R_X86_64_TPOFF32  sir_te gcc.txt:000000000000051d R_X86_64_TPOFF32  sir_te gcc.txt:0000000000000541 R_X86_64_TPOFF32  sir_te gcc.txt:0000000000000554 R_X86_64_TPOFF32  sir_te+0x0000000000000004 gcc.txt:00000000000005e1 R_X86_64_TPOFF32  sir_te+0x0000000000000118 gcc.txt:00000000000005ea R_X86_64_TPOFF32  sir_te+0x0000000000000110 gcc.txt:00000000000005f3 R_X86_64_TPOFF32  sir_te+0x0000000000000108 gcc.txt:0000000000000667 R_X86_64_TPOFF32  sir_te

dmd.txt:0000000000000027 R_X86_64_TLSGD    sir_te-0x0000000000000004 dmd.txt:000000000000003c R_X86_64_TLSGD    sir_te-0x0000000000000004 dmd.txt:0000000000000059 R_X86_64_TLSGD    sir_te-0x0000000000000004 dmd.txt:0000000000000076 R_X86_64_TLSGD    sir_te-0x0000000000000004 dmd.txt:000000000000001f R_X86_64_TLSGD    sir_te-0x0000000000000004 dmd.txt:0000000000000038 R_X86_64_TLSGD    sir_te-0x0000000000000004 dmd.txt:0000000000000083 R_X86_64_TLSGD    sir_te-0x0000000000000004 dmd.txt:0000000000000061 R_X86_64_TLSGD    sir_te-0x0000000000000004 dmd.txt:00000000000000d5 R_X86_64_TLSGD    sir_te-0x0000000000000004 dmd.txt:00000000000000f6 R_X86_64_TLSGD    sir_te-0x0000000000000004 dmd.txt:0000000000000117 R_X86_64_TLSGD    sir_te-0x0000000000000004 dmd.txt:00000000000001a7 R_X86_64_TLSGD    sir_te-0x0000000000000004 dmd.txt:00000000000001c2 R_X86_64_TLSGD    sir_te-0x0000000000000004 dmd.txt:00000000000001e5 R_X86_64_TLSGD    sir_te-0x0000000000000004 dmd.txt:0000000000000267 R_X86_64_TLSGD    sir_te-0x0000000000000004

--
September 05, 2023
https://issues.dlang.org/show_bug.cgi?id=24131

--- Comment #3 from Jeffrey H. Johnson <trnsz@pobox.com> ---
I hope this is helpful, if not, let me know.

--
September 09, 2023
https://issues.dlang.org/show_bug.cgi?id=24131

--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> ---
If you can create, say, a 3 line C file, that exhibits the difference, that would be most helpful.

--