From 64e1b99580d3cb7002f6a4da280c246d82a0aaa8 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Sun, 22 Dec 2024 10:25:26 -0500 Subject: [PATCH 1/2] Update ELF/constants.jl Point to glibc where these constants live. --- src/ELF/constants.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ELF/constants.jl b/src/ELF/constants.jl index 09ecf98..0973cf5 100644 --- a/src/ELF/constants.jl +++ b/src/ELF/constants.jl @@ -1,3 +1,5 @@ +# These constants are in glibc: https://github.com/bminor/glibc/blob/969d7cf89966d55fbf0732ae7bc0949a970c837d/elf/elf.h#L357 + # e_ident[EIBCLASS] const ELFCLASSNONE = 0 #Invalid class const ELFCLASS32 = 1 #32-bit objects From 1d8c9f5ffdd7b05afc647e066a159c6b5cd494c7 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Sun, 22 Dec 2024 13:33:58 -0500 Subject: [PATCH 2/2] Update src/ELF/constants.jl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Mosè Giordano <765740+giordano@users.noreply.github.com> --- src/ELF/constants.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ELF/constants.jl b/src/ELF/constants.jl index 0973cf5..8d8d582 100644 --- a/src/ELF/constants.jl +++ b/src/ELF/constants.jl @@ -1,4 +1,6 @@ -# These constants are in glibc: https://github.com/bminor/glibc/blob/969d7cf89966d55fbf0732ae7bc0949a970c837d/elf/elf.h#L357 +# These constants are in glibc and llvm: +# * https://github.com/bminor/glibc/blob/969d7cf89966d55fbf0732ae7bc0949a970c837d/elf/elf.h +# * https://github.com/llvm/llvm-project/blob/b2d7312d52f299a2f854c673796ad1a699e0d79f/llvm/include/llvm/BinaryFormat/ELF.h # e_ident[EIBCLASS] const ELFCLASSNONE = 0 #Invalid class