aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2024-12-19 10:38:47 +0100
committerJan Beulich <jbeulich@suse.com>2024-12-19 10:38:47 +0100
commit2651a59dd60250cf500394afbc38a0ab1966398e (patch)
treed5929618028adae2bdbd053786c2fdfb53ac231a
parent4a95bf414d90b565723618b55c52fadfba86a9c6 (diff)
downloadbinutils-2651a59dd60250cf500394afbc38a0ab1966398e.zip
binutils-2651a59dd60250cf500394afbc38a0ab1966398e.tar.gz
binutils-2651a59dd60250cf500394afbc38a0ab1966398e.tar.bz2
x86-64: correct CODE_5 relocs
Two of them had their numbers swapped; luckily they aren't really in use just yet. Correct indentation as well while at it.
-rw-r--r--include/elf/x86-64.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/elf/x86-64.h b/include/elf/x86-64.h
index 6b5ada8..4ced40c 100644
--- a/include/elf/x86-64.h
+++ b/include/elf/x86-64.h
@@ -96,18 +96,18 @@ START_RELOC_NUMBERS (elf_x86_64_reloc_type)
instruction starts at 5 bytes before the relocation offset,
relaxable. */
RELOC_NUMBER (R_X86_64_CODE_5_GOTPCRELX, 46)
+ /* PC relative offset to IE GOT entry if the instruction starts at
+ 5 bytes before the relocation offset. */
+ RELOC_NUMBER (R_X86_64_CODE_5_GOTTPOFF, 47)
/* 32 bit signed pc relative offset to TLS descriptor in the GOT if
instruction starts at 5 bytes before the relocation offset. */
- RELOC_NUMBER (R_X86_64_CODE_5_GOTPC32_TLSDESC, 47)
- /* PC relative offset to IE GOT entry if the instruction starts at
- 5 bytes before the relocation offset. */
- RELOC_NUMBER (R_X86_64_CODE_5_GOTTPOFF, 48)
+ RELOC_NUMBER (R_X86_64_CODE_5_GOTPC32_TLSDESC, 48)
/* Load from 32 bit signed pc relative offset to GOT entry if the
instruction starts at 6 bytes before the relocation offset,
relaxable. */
RELOC_NUMBER (R_X86_64_CODE_6_GOTPCRELX, 49)
- /* PC relative offset to IE GOT entry if the instruction starts at
- 6 bytes before the relocation offset. */
+ /* PC relative offset to IE GOT entry if the instruction starts at
+ 6 bytes before the relocation offset. */
RELOC_NUMBER (R_X86_64_CODE_6_GOTTPOFF, 50)
/* 32 bit signed pc relative offset to TLS descriptor in the GOT if
instruction starts at 6 bytes before the relocation offset. */