mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
scripts/glibcelf.py: Add *T_RISCV_* constants
SHT_RISCV_ATTRIBUTES, PT_RISCV_ATTRIBUTES, DT_RISCV_VARIANT_CC were
added in commit 0b6c675073
("Update RISC-V specific ELF definitions"). This caused the
elf/tst-glibcelf consistency check to fail.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@ -385,6 +385,10 @@ class ShtPARISC(enum.Enum):
|
|||||||
SHT_PARISC_UNWIND = 0x70000001
|
SHT_PARISC_UNWIND = 0x70000001
|
||||||
SHT_PARISC_DOC = 0x70000002
|
SHT_PARISC_DOC = 0x70000002
|
||||||
|
|
||||||
|
class ShtRISCV(enum.Enum):
|
||||||
|
"""Supplemental SHT_* constants for EM_RISCV."""
|
||||||
|
SHT_RISCV_ATTRIBUTES = 0x70000003
|
||||||
|
|
||||||
class Pf(enum.IntFlag):
|
class Pf(enum.IntFlag):
|
||||||
"""Program header flags. Type of Phdr.p_flags values."""
|
"""Program header flags. Type of Phdr.p_flags values."""
|
||||||
PF_X = 1
|
PF_X = 1
|
||||||
@ -558,6 +562,10 @@ class PtPARISC(enum.Enum):
|
|||||||
PT_PARISC_ARCHEXT = 0x70000000
|
PT_PARISC_ARCHEXT = 0x70000000
|
||||||
PT_PARISC_UNWIND = 0x70000001
|
PT_PARISC_UNWIND = 0x70000001
|
||||||
|
|
||||||
|
class PtRISCV(enum.Enum):
|
||||||
|
"""Supplemental PT_* constants for EM_RISCV."""
|
||||||
|
PT_RISCV_ATTRIBUTES = 0x70000003
|
||||||
|
|
||||||
class Dt(_OpenIntEnum):
|
class Dt(_OpenIntEnum):
|
||||||
"""ELF dynamic segment tags. Type of Dyn.d_val."""
|
"""ELF dynamic segment tags. Type of Dyn.d_val."""
|
||||||
DT_NULL = 0
|
DT_NULL = 0
|
||||||
@ -710,6 +718,10 @@ class DtPPC64(enum.Enum):
|
|||||||
DT_PPC64_OPDSZ = 0x70000002
|
DT_PPC64_OPDSZ = 0x70000002
|
||||||
DT_PPC64_OPT = 0x70000003
|
DT_PPC64_OPT = 0x70000003
|
||||||
|
|
||||||
|
class DtRISCV(enum.Enum):
|
||||||
|
"""Supplemental DT_* constants for EM_RISCV."""
|
||||||
|
DT_RISCV_VARIANT_CC = 0x70000001
|
||||||
|
|
||||||
class DtSPARC(enum.Enum):
|
class DtSPARC(enum.Enum):
|
||||||
"""Supplemental DT_* constants for EM_SPARC."""
|
"""Supplemental DT_* constants for EM_SPARC."""
|
||||||
DT_SPARC_REGISTER = 0x70000001
|
DT_SPARC_REGISTER = 0x70000001
|
||||||
|
Reference in New Issue
Block a user