Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • L llvm-project
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 41
    • Issues 41
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 20
    • Merge requests 20
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Morello
  • llvm-project
  • Merge requests
  • !197

[morello][lld][ELF] Omit RELATIVE relocs for hidden weak symbols in PI executables

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Amilendra Kodithuwakku requested to merge issue-50 into morello/dev Aug 02, 2022
  • Overview 4
  • Commits 2
  • Pipelines 3
  • Changes 3

Fix for Morello llvm-project Issue #50

RELATIVE relocations against hidden weak symbols in -pie binaries are unnecessary because the result is going to be zeros in the address part of the fragment which are already set by the static linker. Also the runtime could process these RELATIVE relocations and set a non-zero address which can result in incorrect behaviour.

Fix by omitting RELATIVE relocations for hidden weak symbols in pie.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: issue-50