[llvm] [llvm][ELF]Add Shdr check for getBuildID (PR #126537)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 29 02:37:22 PDT 2025
================
@@ -40,7 +40,7 @@ static StringRef getInvalidNoteELF(bool WithShdr) {
Machine: EM_X86_64
ProgramHeaders:
- Type: PT_NOTE
- FileSize: 0xffffffffffffffff
+ FileSize: 0xffffffffffffff88
----------------
jh7370 wrote:
Please refer back to [this comment](https://github.com/llvm/llvm-project/pull/126537#discussion_r2374798980) above. I think that should mostly answer your question. It's enough to only check one of the paths there _in this PR,_ because what you're after is test the behaviour when an error is encountered in the underlying code.
https://github.com/llvm/llvm-project/pull/126537
More information about the llvm-commits
mailing list