Subject: [PATCH] Make elflint and libebl understand .rela.eh_frame like other section type

Navin P navinp0304@gmail.com
Fri Nov 13 14:47:18 GMT 2020


Hi,
 elflint doesn't recognize .rela.eh_frame like it does for other .rela sections.

Signed-off-by: Navin P <navinp0304@gmail.com>
---
 libebl/eblcheckreloctargettype.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libebl/eblcheckreloctargettype.c b/libebl/eblcheckreloctargettype.c
index 068ad8f1..9d814d27 100644
--- a/libebl/eblcheckreloctargettype.c
+++ b/libebl/eblcheckreloctargettype.c
@@ -47,6 +47,7 @@ ebl_check_reloc_target_type (Ebl *ebl, Elf64_Word sh_type)
       case SHT_FINI_ARRAY:
       case SHT_PREINIT_ARRAY:
       case SHT_NOTE:
+      case SHT_X86_64_UNWIND: // required by .rela.eh_frame
  return true;

       default:
-- 
2.25.1


More information about the Elfutils-devel mailing list