From 6c66d9a847afb8b7ae4d27d8d97558ff0f352af3 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Thu, 18 Jul 2013 10:53:18 +0800 Subject: Fixed fsec If one object file contains .rodata and .rodata.str1.4 sections, .rodata contains rela reloc entries, but .rodata.str1.4 do not contain reloc entris.'.rodata' and '.rodata.str1.4' will be both included in '.const'.Then using this patch to fix the rela problem Signed-off-by: Peng Fan --- rld-rap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rld-rap.cpp b/rld-rap.cpp index 590d31e..ab57b3e 100644 --- a/rld-rap.cpp +++ b/rld-rap.cpp @@ -682,7 +682,8 @@ namespace rld sec.relocs.end (), reloc_offset_compare ()); - sec.rela = fsec.rela; + if (fsec.rela == true) + sec.rela = fsec.rela; } external::external (const uint32_t name, -- cgit v1.2.3