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 31
    • Issues 31
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 14
    • Merge requests 14
  • 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
  • Issues
  • #44

Closed
Open
Created Feb 08, 2022 by Dapeng Gao@dpgao

Linker failure with relocation type `R_MORELLO_LD_PREL_LO17`

The linker fails with the following code

.section	my_section,"awx"
.p2align	4
data_cap:
.chericap	0
	ldr	c9, data_cap
	br	c9

and gives error message: aarch64-unknown-freebsd-ld.lld: error: relocation R_MORELLO_LD_PREL_LO17 cannot be used against local symbol; recompile with -fPIC when it should successfully relocate the address of data_cap.

A fix suggested by @jrtc27 is to include R_MORELLO_VADREF in isRelExpr in lld/ELF/Relocations.cpp.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking