Skip to content

[RTLD] Add support for PIC and being build as shared library #334

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

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

badochov
Copy link
Contributor

Description

Motivation and Context

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

How Has This Been Tested?

  • Already covered by automatic testing.
  • New test added: (add PR link here).
  • Tested by hand on: (list targets here).

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing linter checks and tests passed.
  • My changes generate no new compilation warnings for any of the targets.

Special treatment

  • This PR needs additional PRs to work (list the PRs, preferably in merge-order).
  • I will merge this PR by myself when appropriate.

@badochov badochov requested a review from agkaminski January 30, 2024 14:57
@badochov
Copy link
Contributor Author

FIrst 3 commits are from different PRs

Copy link

github-actions bot commented Jan 31, 2024

Unit Test Results

6 780 tests   - 920   6 154 ✅  - 831   31m 19s ⏱️ - 8m 9s
  380 suites  -  56     626 💤  -  89 
    1 files   ±  0       0 ❌ ±  0 

Results for commit 77c8fec. ± Comparison against base commit 3375557.

This pull request removes 920 tests.
flash ‑ armv7a9-zynq7000-zedboard:flash
phoenix-rtos-tests/cpp/hello-cpp ‑ armv7a9-zynq7000-zedboard:phoenix-rtos-tests/cpp/hello-cpp
phoenix-rtos-tests/initfini/main ‑ armv7a9-zynq7000-zedboard:phoenix-rtos-tests/initfini/main
phoenix-rtos-tests/ioctl/unit ‑ armv7a9-zynq7000-zedboard:phoenix-rtos-tests/ioctl/unit.ioctl.data_in
phoenix-rtos-tests/ioctl/unit ‑ armv7a9-zynq7000-zedboard:phoenix-rtos-tests/ioctl/unit.ioctl.data_in_big
phoenix-rtos-tests/ioctl/unit ‑ armv7a9-zynq7000-zedboard:phoenix-rtos-tests/ioctl/unit.ioctl.data_inout
phoenix-rtos-tests/ioctl/unit ‑ armv7a9-zynq7000-zedboard:phoenix-rtos-tests/ioctl/unit.ioctl.data_inout_big
phoenix-rtos-tests/ioctl/unit ‑ armv7a9-zynq7000-zedboard:phoenix-rtos-tests/ioctl/unit.ioctl.data_out
phoenix-rtos-tests/ioctl/unit ‑ armv7a9-zynq7000-zedboard:phoenix-rtos-tests/ioctl/unit.ioctl.data_out_big
phoenix-rtos-tests/ioctl/unit ‑ armv7a9-zynq7000-zedboard:phoenix-rtos-tests/ioctl/unit.ioctl.in_val
…

♻️ This comment has been updated with latest results.

@badochov badochov force-pushed the badochov/dynamic-linker branch 3 times, most recently from c2c4a95 to cfc9a6e Compare February 2, 2024 13:23
@badochov badochov force-pushed the badochov/dynamic-linker branch from cfc9a6e to 77c8fec Compare August 5, 2024 17:06
@badochov badochov force-pushed the badochov/dynamic-linker branch from 77c8fec to ddc8fe7 Compare August 16, 2024 12:36
@badochov badochov force-pushed the badochov/dynamic-linker branch from ddc8fe7 to 9fe5f55 Compare August 16, 2024 12:56
@badochov badochov force-pushed the badochov/dynamic-linker branch from 2caa8d8 to b72127e Compare August 21, 2024 11:22
@badochov badochov force-pushed the badochov/dynamic-linker branch 3 times, most recently from ab44ee8 to fd5b08c Compare August 27, 2024 16:02
@badochov badochov force-pushed the badochov/dynamic-linker branch 2 times, most recently from 3243e14 to 9547eeb Compare August 29, 2024 16:13
@badochov badochov force-pushed the badochov/dynamic-linker branch from 9547eeb to bee4ca6 Compare September 2, 2024 16:43
@badochov badochov force-pushed the badochov/dynamic-linker branch from bee4ca6 to cae7c5e Compare September 2, 2024 17:01
@badochov badochov force-pushed the badochov/dynamic-linker branch 3 times, most recently from 1fbfbc1 to 531abff Compare September 5, 2024 14:21
@badochov badochov force-pushed the badochov/dynamic-linker branch 2 times, most recently from 6f6f34b to ab58b63 Compare September 12, 2024 10:42
@badochov badochov force-pushed the badochov/dynamic-linker branch 4 times, most recently from d761924 to 0ba38c3 Compare September 18, 2024 07:35
@badochov badochov force-pushed the badochov/dynamic-linker branch 5 times, most recently from a561b47 to 47a6b37 Compare October 6, 2024 16:31
@badochov badochov force-pushed the badochov/dynamic-linker branch 2 times, most recently from 90eeca8 to 046a16f Compare October 25, 2024 14:32
@badochov badochov force-pushed the badochov/dynamic-linker branch from 046a16f to 5a9ff9b Compare December 5, 2024 12:26
@badochov badochov mentioned this pull request Mar 18, 2025
13 tasks
@badochov badochov force-pushed the badochov/dynamic-linker branch 3 times, most recently from 1af57c0 to 7e65870 Compare March 27, 2025 12:54
badochov and others added 11 commits March 27, 2025 23:52
In PIE on ia32 function calls should be made using GOT.

JIRA: RTOS-664
This allows constructor handling mechanism in dynamic linker.

JIRA: RTOS-664
@badochov badochov force-pushed the badochov/dynamic-linker branch from 7e65870 to 42d20dd Compare March 27, 2025 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant