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
  • linux
  • scripts
  • decodecode
Find file BlameHistoryPermalink
  • Will Deacon's avatar
    scripts/decodecode: fix decoding for AArch64 (arm64) instructions · be9fa663
    Will Deacon authored Jan 18, 2018
    There are a couple of problems with the decodecode script and arm64:
    
    1. AArch64 objdump refuses to disassemble .4byte directives as instructions,
       insisting that they are data values and displaying them as:
    
    	a94153f3	.word	0xa94153f3		<-- trapping instruction
    
       This is resolved by using the .inst directive instead.
    
    2. Disassembly of branch instructions attempts to provide the target as
       an offset from a symbol, e.g.:
    
       0:	34000082	cbz	w2, 10 <.text+0x10>
    
      however this falls foul of the grep -v, which matches lines containing
      ".text" and ends up removing all branch instructions from the dump.
    
    This patch resolves both issues by using the .inst directive for 4-byte
    quantities on arm64 and stripping the resulting binaries (as is done on
    arm already) to remove the mapping symbols.
    
    Link: http://lkml.kernel.org/r/1506596147-23630-1-git-send-email-will.deacon@arm.com
    
    
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    Reviewed-by: default avatarDave Martin <Dave.Martin@arm.com>
    Cc: Michal Marek <mmarek@suse.cz>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    be9fa663
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7