[PATCH 0/3] x86: another take at PC16 reloc overflow checking
H.J. Lu
hjl.tools@gmail.com
Thu Jun 17 15:17:58 GMT 2021
On Thu, Jun 17, 2021 at 8:07 AM Jan Beulich <jbeulich@suse.com> wrote:
>
> On 17.06.2021 16:59, H.J. Lu wrote:
> > On Mon, Jun 14, 2021 at 11:36 PM Jan Beulich <jbeulich@suse.com> wrote:
> >>
> >> As suggested the first patch introduces command line options, keeping
> >> default behavior as-is at least for now. It also extends this to PC32
> >> handling on x86-64, to allow covering 32-bit code in a 64-bit object
> >> file. The other two patches are cleanup noticed to be desirable while
> >> doing the main change.
> >>
> >> 1: x86: permit correct overflow checking for 16-bit PC-relative relocs
> >> 2: x86-64/ELF: use new reloc override model to deal with x32 special case
> >> 3: x86: drop redundant x86-64-code16-2 test
> >>
> >
> > I don't think a linker option to change PC16 relocation overflow is a good
> > idea. If we really want to use PC16 with XBEGIN, we can add a new
> > relocation type.
>
> It was already said that a new reloc type comes with its own issues. Plus
> what about the relaxed PC32 overflow checking that the first patch also
> adds? And finally - patch 3 is, I think, independent of all of this.
>
Let's make an XBEGIN with PC16 a separate issue. Please submit a new
patch without the new linker option.
--
H.J.
More information about the Binutils
mailing list