From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 201823858415; Wed, 6 Oct 2021 00:09:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 201823858415 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/102625] New: [meta-bug] -mcmodel=large can't link Date: Wed, 06 Oct 2021 00:09:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: meta-bug X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter dependson target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2021 00:09:09 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102625 Bug ID: 102625 Summary: [meta-bug] -mcmodel=3Dlarge can't link Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: meta-bug Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Depends on: 95620, 98693 Target Milestone: --- Target: x86-64 [hjl@gnu-cfl-2 tmp]$ cat l.c #include char foo[0x100000000] =3D { 1 }; int main () { printf ("%p\n", foo); return 0; } [hjl@gnu-cfl-2 tmp]$ gcc l.c -mcmodel=3Dlarge /usr/lib/gcc/x86_64-redhat-linux/11/crtbegin.o: in function `deregister_tm_clones': crtstuff.c:(.text+0x1): relocation truncated to fit: R_X86_64_32 against sy= mbol `__TMC_END__' defined in .data section in a.out crtstuff.c:(.text+0x7): relocation truncated to fit: R_X86_64_32S against `.tm_clone_table' crtstuff.c:(.text+0x18): relocation truncated to fit: R_X86_64_32 against `.tm_clone_table' /usr/lib/gcc/x86_64-redhat-linux/11/crtbegin.o: in function `register_tm_clones': crtstuff.c:(.text+0x31): relocation truncated to fit: R_X86_64_32 against symbol `__TMC_END__' defined in .data section in a.out crtstuff.c:(.text+0x38): relocation truncated to fit: R_X86_64_32S against `.tm_clone_table' crtstuff.c:(.text+0x5a): relocation truncated to fit: R_X86_64_32 against `.tm_clone_table' /usr/lib/gcc/x86_64-redhat-linux/11/crtbegin.o: in function `__do_global_dtors_aux': crtstuff.c:(.text+0x76): relocation truncated to fit: R_X86_64_PC32 against `.bss' crtstuff.c:(.text+0x88): relocation truncated to fit: R_X86_64_PC32 against `.bss' collect2: error: ld returned 1 exit status [hjl@gnu-cfl-2 tmp]$ Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95620 [Bug 95620] [10 Regression] relocation truncated to fit: R_X86_64_PC32 agai= nst `.bss' https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98693 [Bug 98693] Compiling with -mcmodel=3Dlarge emits .eh_frame with R_X86_64_P= C32=