From: "Maciej W. Rozycki" <macro@orcam.me.uk>
To: Alan Modra <amodra@gmail.com>
Cc: binutils@sourceware.org, Chenghua Xu <paul.hua.gm@gmail.com>
Subject: Re: MIPS HI16 and LO16 reloc howtos
Date: Tue, 2 Apr 2024 12:19:50 +0100 (BST) [thread overview]
Message-ID: <alpine.DEB.2.21.2404021033230.53456@angie.orcam.me.uk> (raw)
In-Reply-To: <ZgtZzZ0aZypucbZM@squeak.grove.modra.org>
On Tue, 2 Apr 2024, Alan Modra wrote:
> PR 19977
> * elf32-mips.c: Correct rightshift for HI16, HIGHER and HIGHEST
> reloc howtos. Correct complain_on_overflow for LO16 relocs.
> * elf64-mips.c: Likewise.
> * elfn32-mips.c: Likewise.
>
> OK? This is a prerequisite to fixing PR19977.
It does seem to me like a correct change to make, so OK. Thank you for
working on this issue.
NB I pushed this through regression testing for additional safety and
noticed numerous:
FAIL: gas/all/none
regressions. As it happened there was one:
FAIL: Output file must be distinct from input
failure too and gas/testsuite/gas/all/none.s got replaced with ELF output:
$ file gas/testsuite/gas/all/none.s
gas/testsuite/gas/all/none.s: ELF 32-bit MSB relocatable, MIPS, MIPS-I version 1 (SYSV), not stripped
This comes from gas/testsuite/gas/all/gas.exp, where we have:
if { ![ishost "*-*-mingw*"] } then {
gas_test_error "none.s" "-o $srcdir/$subdir/none.s" "Output file must be distinct from input"
}
which I think is an ill way to run a test, as it risks source corruption
in the case of a failure, which is exactly what happened here. I think a copy of the
source file has to be made in the testsuite object directory and operated
on instead.
Why the failure happened is another matter; it seems intermittent and
happened exactly once for a single varying target in all my test runs
starting from Jul 29th, 2023, hmm...
Maciej
prev parent reply other threads:[~2024-04-02 11:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-02 1:05 Alan Modra
2024-04-02 1:06 ` MIPS reloc howto special_function entries Alan Modra
2024-04-02 1:07 ` R_MIP16_GOT16 and R_MICROMIPS_GOT16 Alan Modra
2024-04-02 1:08 ` MIPS linker changes for TLS HI16/LO16 relocs Alan Modra
2024-04-02 11:19 ` Maciej W. Rozycki [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.21.2404021033230.53456@angie.orcam.me.uk \
--to=macro@orcam.me.uk \
--cc=amodra@gmail.com \
--cc=binutils@sourceware.org \
--cc=paul.hua.gm@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).