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

minor improvement and a bug fix #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Commits on May 2, 2023

  1. minor improvements:

     - added python3 compatibility
     - added --include-path option
     - used floor division (//) to compute ABS32 symbol offset
    vinxxe authored and vinxxe committed May 2, 2023
    Configuration menu
    Copy the full SHA
    2707df7 View commit details
    Browse the repository at this point in the history
  2. no more need to fix an addres for udynlink_get_lot_base function

    the asm template has been changed to load into the r1 register (to jump to udynlink_get_lot_base address) the value of the defined label.
    then the user shall call the function udynlink_patch_exported_func to write the address of udynlink_get_lot_base to the space reserved for the label.
    the only thing that shall be known at compile time is the code length in bytes of the asm prologue.
    the rodata has been moved to the data section because the udynlink_patch_exported_func patch the global symbols belonging to the text section
    vinxxe authored and vinxxe committed May 2, 2023
    Configuration menu
    Copy the full SHA
    db2a9a2 View commit details
    Browse the repository at this point in the history
  3. bug: if the script compiles more than one source file, it consider th…

    …e global symbols of the last file only.
    
    this fix resolves this problem. now the script saves the global symbols of all the object files and, in the linking phase, it makes all these symbols local.
    vinxxe authored and vinxxe committed May 2, 2023
    Configuration menu
    Copy the full SHA
    a214647 View commit details
    Browse the repository at this point in the history
  4. added the R_ARM_CALL to the checking for PC-relative functions

    just in case you need to compile without thumb instruction set
    vinxxe authored and vinxxe committed May 2, 2023
    Configuration menu
    Copy the full SHA
    5269978 View commit details
    Browse the repository at this point in the history