From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A1214386EC3E; Sat, 16 Jan 2021 13:15:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A1214386EC3E From: "xry111 at mengyan1223 dot wang" 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: Sat, 16 Jan 2021 13:15:20 +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: xry111 at mengyan1223 dot wang 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: Sat, 16 Jan 2021 13:15:20 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97787 --- Comment #9 from Xi Ruoyao --- (In reply to rguenther@suse.de from comment #8) > 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. I don't think so. I can reproduce this issue compiling spidermonkey (js interpreter) from firefox-78 ESR. I'm using "-pipe" so I can easily find the parameters pass= ed to "as", using "ps -aux". "-xgot" is passed correctly. > Can you attach the full output of compiling & linking with -v added? > > Can you try using -mxgot -Wa,-xgot or -mxgot -Xassembler -xgot at > compile time? I'm trying, though my gut feeling is that it won't work.=