Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
L
llvm-project
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 16
    • Issues 16
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 3
    • Merge Requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Metrics
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Morello
  • llvm-project
  • Merge Requests
  • !44

Open
Created Feb 15, 2021 by Amilendra Kodithuwakku@amikod01Developer
  • Report abuse
Report abuse

Draft: [lld][Morello] Use R_MORELLO_RELATIVE for capabilility initialization in static executables

  • Overview 8
  • Commits 9
  • Pipelines 4
  • Changes 52

Generate capability initialisation information in a standard dynamic relocation section .rela.dyn with __cap_dynrelocs_start and __cap_dynrelocs_end to mark its start and end. All relocation entries are of type R_MORELLO_RELATIVE, which does not need any symbol information; everything needed to initialise the capability is in the relocation record and in the 128 bit frag.

  • Capability address: rela.r_offset
  • Capability offset: rela.r_addend
  • Capability base: fragbits<63:0>
  • Capability size: fragbits<119:64>
  • Capability permissions: fragbits<127:120>

This behavior is disabled by default and can be activated by the linker switch: --morello-static-caps=elf

Change-Id: I894dc1b6adc78c4ffd59f9dd8c4d701550af0c81

Edited Apr 13, 2021 by Amilendra Kodithuwakku
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: amilendra-static-cap-relocs