diff options
author | norly <ny-git@enpas.org> | 2013-03-21 18:23:57 +0000 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2013-03-21 18:23:57 +0000 |
commit | b05f85ea8599327918640f5ee2bb3f422559b357 (patch) | |
tree | 604e83d87e47a4928b5a5609ea8a6842a882d536 /src/model/insert.c | |
parent | e2b6e201992b9e4d458dd469d286db3dca46e75f (diff) |
NOBITS expansion, for .bss etc
GNU binutils' readelf gets confused with symbol versions. More analysis
needed on that.
Diffstat (limited to 'src/model/insert.c')
-rw-r--r-- | src/model/insert.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/model/insert.c b/src/model/insert.c index d4e19d3..edfe153 100644 --- a/src/model/insert.c +++ b/src/model/insert.c @@ -121,6 +121,10 @@ GElf_Xword elfu_mInsertBefore(ElfuElf *me, GElf_Off off, GElf_Xword size) * * PHDRs will be patched such that everything AFTER off is shifted to * higher addresses, making space for the new data in-between. + * + * CAUTION: This also moves NOBITS sections. If such are present, + * use mExpandNobits() first and then inject at the end of + * the expansion site. */ GElf_Xword elfu_mInsertAfter(ElfuElf *me, GElf_Off off, GElf_Xword size) { |