[Tarantool-patches] [PATCH luajit v2 1/1] Fix saved bytecode encapsulated in ELF objects.
Igor Munkin
imun at tarantool.org
Tue Jul 4 20:09:34 MSK 2023
Sergey,
I've checked the patchset into all long-term branches in
tarantool/luajit and bumped a new version in master and release/2.11.
Considering the tests specifics, it's not trivial to adjust it for
release/2.10 (since there is no -b option in the old versions).
On 30.05.23, Sergey Bronnikov via Tarantool-patches wrote:
> From: Sergey Bronnikov <sergeyb at tarantool.org>
>
> Thanks to Dimitry Andric.
>
> (cherry picked from commit 7dbf0b05f1228c1c719866db5e5f3d58f87f74c8)
>
> Function `bcsave.lua:bcsave_elfobj()` produced an object file in ELF
> format with a wrong size size of `.strtab`. Wrong .strtab size causes lld to
> show an error message:
>
> ```
> $ luajit -b -n "module_name" -e "print()" xxx.obj
> $ ld.lld xxx.obj
> ld.lld: error: xxx.obj: SHT_STRTAB string table section [index 3] is non-null terminated
> ```
>
> Sergey Bronnikov:
> * added the description and the test for the problem
>
> Signed-off-by: Sergey Bronnikov <sergeyb at tarantool.org>
> Reviewed-by: Sergey Kaplun <skaplun at tarantool.org>
> Reviewed-by: Maxim Kokryashkin <m.kokryashkin at tarantool.org>
> ---
>
> Changes in v2:
> - Fixed comments as per review by Sergey.
>
> Branch: https://github.com/tarantool/luajit/tree/ligurio/gh-366-strtab-section-correct-size
> Tarantool CI: https://github.com/ligurio/tarantool/tree/ligurio/gh-xxxx-strtab-section-correct-size
>
> src/jit/bcsave.lua | 2 +-
> .../lj-366-strtab-correct-size.test.lua | 202 ++++++++++++++++++
> 2 files changed, 203 insertions(+), 1 deletion(-)
> create mode 100644 test/tarantool-tests/lj-366-strtab-correct-size.test.lua
>
<snipped>
> --
> 2.34.1
>
--
Best regards,
IM
More information about the Tarantool-patches
mailing list