From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BCFAF3AA982B; Mon, 18 Jan 2021 08:15:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BCFAF3AA982B From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/97787] [10/11 regression] 64bit mips lto: .symtab local symbol at index x (>= sh_info of y) Date: Mon, 18 Jan 2021 08:15:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: Mon, 18 Jan 2021 08:15:34 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97787 --- Comment #13 from Richard Biener --- (In reply to Xi Ruoyao from comment #9) > (In reply to rguenther@suse.de from comment #8) >=20 > > I guess it is because -mxgot is supposed to be handled by the assembler? > > I see > >=20 > > %{mgp32} %{mgp64} %{march=3D*} %{mxgot:-xgot} \ > >=20 > > in ASM_SPEC. I guess this doesn't make it to COLLECT_AS_OPTIONS > > and eventually makes it dropped from COLLECT_GCC_OPTIONS as well. >=20 > I don't think so. >=20 > I can reproduce this issue compiling spidermonkey (js interpreter) from > firefox-78 ESR. I'm using "-pipe" so I can easily find the parameters > passed to "as", using "ps -aux". "-xgot" is passed correctly. >=20 > > Can you attach the full output of compiling & linking with -v added? ^^^ (output aka output on the console) I think the issue should be visible from a simple hello world compiled with LTO and -mxgot (aka not using -xgot in the approproate places in the end, not failing the link in the end).=