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

Remove dependency on GCC, replace with LIEF project #54

Open
mahaloz opened this issue Feb 13, 2023 · 2 comments
Open

Remove dependency on GCC, replace with LIEF project #54

mahaloz opened this issue Feb 13, 2023 · 2 comments
Labels

Comments

@mahaloz
Copy link
Owner

mahaloz commented Feb 13, 2023

@casept
Copy link
Contributor

casept commented Sep 25, 2023

I investigated this and started writing some code for it. Unfortunately, it's blocked by lief-project/LIEF#213.

We could work around this by shipping a dummy ELF for each architecture we want to support, but that's not exactly a clean approach.

@mahaloz
Copy link
Owner Author

mahaloz commented Sep 26, 2023

@casept I'm not entirely against shipping a dummy ELF with every arch; the only thing that sucks is that the DWARFs associated with those ELFs are likely to get outdated after just a few years. I originally wanted to just ship with ELFs, but if the DWRAF format changed than those ELFs would be useless aside from the .symtab.

unknown321 added a commit to unknown321/decomp2dbg that referenced this issue Feb 27, 2024
This method provides info required to build ELF file accepted by gdb:
  - machine id
  - endianness
  - bit size

It also provides:
  - image base offset to rebase symbols to their original offsets
  - ELF flags (not mandatory)
  - program name
unknown321 added a commit to unknown321/decomp2dbg that referenced this issue Feb 27, 2024
This method provides info required to build ELF file accepted by gdb:
  - machine id
  - endianness
  - bit size

It also provides:
  - image base offset to rebase symbols to their original offsets
  - ELF flags (not mandatory)
  - program name
mahaloz pushed a commit that referenced this issue Feb 28, 2024
This method provides info required to build ELF file accepted by gdb:
  - machine id
  - endianness
  - bit size

It also provides:
  - image base offset to rebase symbols to their original offsets
  - ELF flags (not mandatory)
  - program name
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