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

Add support for ARM64 and musl and fix few mistakes #3

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

Commits on Apr 26, 2021

  1. Address different header files location in case of musl

    Musl doesn't provide a way of explicitly identifying it, so find it
    implicitly as "not glibc and not uclibc".
    Vladyslav Movchan committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    a79c5f7 View commit details
    Browse the repository at this point in the history
  2. Define data types which are missing in musl

    Vladyslav Movchan committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    2f24a12 View commit details
    Browse the repository at this point in the history
  3. There is no __getpagesize() in musl, but existing getpagesize() should

    provide the same result
    Vladyslav Movchan committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    9a5375b View commit details
    Browse the repository at this point in the history
  4. There is no bits/wordsize.h header in musl

    Vladyslav Movchan committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    37f009e View commit details
    Browse the repository at this point in the history
  5. Include linux/time.h for musl where timespec data type is defined

    explicitly
    
    This is necessary to address the following error with musl C library:
    error: invalid application of 'sizeof' to incomplete type
    'linux_syscall_support::timespec'
    Vladyslav Movchan committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    5675267 View commit details
    Browse the repository at this point in the history
  6. Skip stat64 and fstat64 if they are macros and not functions

    This is necessary to prevent creation of conflicting function
    declarations in case of musl C library.
    Vladyslav Movchan committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    c7d723b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4e48b75 View commit details
    Browse the repository at this point in the history
  8. Import the recent version of linux_syscall_support.h from

    google-breakpad
    Vladyslav Movchan committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    5c5bd97 View commit details
    Browse the repository at this point in the history
  9. Adapt according to changed sys_prctl() definition

    Vladyslav Movchan committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    309e35d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    f5602a1 View commit details
    Browse the repository at this point in the history
  11. Add missing aarch64 bits

    Vladyslav Movchan committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    ed6f481 View commit details
    Browse the repository at this point in the history
  12. Add aarch64 support

    Vladyslav Movchan committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    323aa6d View commit details
    Browse the repository at this point in the history
  13. Correct waitpid wstatus argument type

    Vladyslav Movchan committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    be9e560 View commit details
    Browse the repository at this point in the history
  14. Add missing header for getpid()

    Vladyslav Movchan committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    c0283a0 View commit details
    Browse the repository at this point in the history
  15. PT_LOAD segment might not always go first

    Vladyslav Movchan committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    b0b9495 View commit details
    Browse the repository at this point in the history
  16. Interpret p_vaddr as an offset rather than absolute address

    Vladyslav Movchan committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    08883d9 View commit details
    Browse the repository at this point in the history
  17. Correct check for proper alignment

    Vladyslav Movchan committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    cb6ddc3 View commit details
    Browse the repository at this point in the history
  18. Skip PT_NOTE segment obtained from vDSO

    There should be just one PT_NOTE segment in a core file.
    And otherwise gdb identify such core file as corrupted.
    Vladyslav Movchan committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    9bfd72b View commit details
    Browse the repository at this point in the history