Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • tools
  • include
  • linux
  • objtool.h
Find file BlameHistoryPermalink
  • Josh Poimboeuf's avatar
    objtool: Combine UNWIND_HINT_RET_OFFSET and UNWIND_HINT_FUNC · b735bd3e
    Josh Poimboeuf authored Jan 21, 2021
    
    
    The ORC metadata generated for UNWIND_HINT_FUNC isn't actually very
    func-like.  With certain usages it can cause stack state mismatches
    because it doesn't set the return address (CFI_RA).
    
    Also, users of UNWIND_HINT_RET_OFFSET no longer need to set a custom
    return stack offset.  Instead they just need to specify a func-like
    situation, so the current ret_offset code is hacky for no good reason.
    
    Solve both problems by simplifying the RET_OFFSET handling and
    converting it into a more useful UNWIND_HINT_FUNC.
    
    If we end up needing the old 'ret_offset' functionality again in the
    future, we should be able to support it pretty easily with the addition
    of a custom 'sp_offset' in UNWIND_HINT_FUNC.
    
    Signed-off-by: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
    Link: https://lore.kernel.org/r/db9d1f5d79dddfbb3725ef6d8ec3477ad199948d.1611263462.git.jpoimboe@redhat.com
    b735bd3e
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7