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

Wrap LLD into python #898

Open
wants to merge 169 commits into
base: main
Choose a base branch
from
Open

Wrap LLD into python #898

wants to merge 169 commits into from

Conversation

ArachnidAbby
Copy link

@ArachnidAbby ArachnidAbby commented Jan 11, 2023

Based on: Add dependency on LLD, wrap it into python

todo:

  • Bring the old pr up-to-date with the 800 commits made to llvmlite since the pr opened
  • Fix any broken code from the original pr
  • add .binding.lld module with functions for each platform lld supports
  • complete remaining items on the original PR
  • add documentation for any newly added functions

items remaining in the original PR

  • Make all Travis tests pass, test LLD on 64bit linux
  • Write a test for 32 bits linux? Currently only 64 bits are tested. (not required)
  • Get it to compile on macOS
  • Get it to compile on Windows
  • Get the PyPy test working (not required)
  • Implement LLD for macOS and test it
  • Implement LLD for Windows and test it
    (all non-required items are going to be checked off)

I will update you as I complete items.

certik and others added 28 commits January 26, 2019 14:40
This fixes the following link errors:

.../miniconda3/envs/build/conda-bld/lld_1542237425154/_build_env/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: ../../lib/liblldCOFF.a(MapFile.cpp.o):(.data.rel.ro._ZTIN4llvm13format_objectIJmmmEEE[_ZTIN4llvm13format_objectIJmmmEEE]+0x10): undefined reference to `typeinfo for llvm::format_object_base'
For now we just call lld::elf::link.
This is a temporary workaround to get it working. We have to figure out how to
obtain these automatically.
@gmarkall
Copy link
Member

Many thanks for opening this PR!

@ArachnidAbby
Copy link
Author

Okay, going to try a different approach. I'm going to see if I can rebuild the conda recipe for lld. I think that would ensure that they are both compiled using the same set of libraries and what not. Idk if its gonna work, but its worth a shot at least once right?

@ArachnidAbby
Copy link
Author

I got it working! Finally! Now it just needs review. And I work from home now so feel free to contact me thru here if you all need to me to modify anything or fix anything for the next update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow llvmlite to also link object code
6 participants