Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ELF loader cannot load ELF binaries with relocation section not pointing to a symbol section #70

Open
phil777 opened this issue May 15, 2018 · 0 comments
Assignees
Labels

Comments

@phil777
Copy link
Member

phil777 commented May 15, 2018

Static executable generated with gcc 7 for ARM create an ELF executable with this REL section header (note the readelf warning):

  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
  [ 0]                   NULL            00000000 000000 000000 00      0   0  0
  [ 1] .note.ABI-tag     NOTE            00010114 000114 000020 00   A  0   0  4
  [ 2] .note.gnu.build-i NOTE            00010134 000134 000024 00   A  0   0  4
readelf: Warning: [ 3]: Link field (0) should index a symtab section.
  [ 3] .rel.dyn          REL             00010158 000158 000008 08   A  0   0  4

Created with

arm-linux-gnueabihf-gcc-7 -static xxx.c

Bincat will abort with

EXCEPTION: Exceptions.Error("symbol 0 of section 0 not found for reloc in section 3")
@phil777 phil777 self-assigned this May 15, 2018
@trou trou added the bug label Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants