This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] elf/elf.h: Add new 386 and X86_64 relocations from binutils.

On Thu, Jan 28, 2016 at 05:03:28AM -0800, H.J. Lu wrote:
> On Thu, Jan 28, 2016 at 4:55 AM, Mark Wielaard <> wrote:
> > The following new 386 and X86_64 were added to binutils. They are
> > non-dynamic relocations, so don't need direct handling in glibc.
> > But other programs, like elfutils, use the glibc elf.h definitions
> > for the names and numbers when inspecting ET_REL files.
> >
> > R_386_GOT32X was proposed in
> >!topic/ia32-abi/GbJJskkid4I
> >
> > X86_64_GOTPCRELX and R_X86_64_REX_GOTPCRELX were proposed in
> >!topic/x86-64-abi/n9AWHogmVY0
> >
> > There also used to be R_X86_64_PC32_BND (39) and R_X86_64_PLT32_BND (40)
> > but those already got deprecated and now the numbers are simply reserved.
> We can't use them for anything else and linker still supports them,  But
> assembler won't generate them.

OK, if we cannot reuse them, then it makes sense to just add them
and mark them deprecated in the comments. Then at least we got the
name and number for tools to recognize them.

Adjusted patch attached.



Attachment: 0001-elf-elf.h-Add-new-386-and-X86_64-relocations-from-bi.patch
Description: Text document

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]