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
  • #45

Closed
Open
Created Feb 12, 2022 by Alex Richardson@arichardsonDeveloper

Functions in assembly only get LSB set if .type precedes the label

While building libffi for purecap Morello I noticed that the functions written in assembly were not getting the LSB set so were entered without C64 and trapped immediately. It turns out the assembly file has .type ffi_call_SYSV, #function, but the directive is after the label declaration, and this results in an object file without the LSB set in the resulting symbol.

working:

.global foo
.type foo, @function
foo:
    ret c30
.size foo, .-foo

broken:

.global foo
foo:
    ret c30
.type foo, @function
.size foo, .-foo
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