diff options
author | Peng Fan <van.freenix@gmail.com> | 2013-07-18 10:53:18 +0800 |
---|---|---|
committer | Peng Fan <van.freenix@gmail.com> | 2013-07-19 07:35:08 +0800 |
commit | 6c66d9a847afb8b7ae4d27d8d97558ff0f352af3 (patch) | |
tree | a0b27a0444fa50addb6e096b904e2ea14139552d /rld-rap.cpp | |
parent | 2a5f817cb9202efbaa83c2b6e9808882580fa5d1 (diff) |
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 <van.freenix@gmail.com>
Diffstat (limited to 'rld-rap.cpp')
-rw-r--r-- | rld-rap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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, |