From b8b9fa51bd1e495cebb7a9b119249e7342fa3f8a Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 17 Jun 2019 06:43:34 +0000 Subject: [PATCH] libdyld: accept objects with no rela relocations. --- artiq/firmware/libdyld/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/firmware/libdyld/lib.rs b/artiq/firmware/libdyld/lib.rs index d16dc1cdd..bbf4f59c5 100644 --- a/artiq/firmware/libdyld/lib.rs +++ b/artiq/firmware/libdyld/lib.rs @@ -289,7 +289,7 @@ impl<'a> Library<'a> { if sym_ent != mem::size_of::() { return Err("incorrect symbol entry size")? } - if rela_ent != mem::size_of::() { + if rela_ent != 0 && rela_ent != mem::size_of::() { return Err("incorrect relocation entry size")? }