diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-12-26 23:43:01 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-11-15 03:35:45 -0500 |
commit | ad73370f6770480f1786aab8f2b7f5fe155152c8 (patch) | |
tree | 444e47272b1c9f7540c2e3326334a1c6137f620f | |
parent | 1e19183d08a3312ac2331b8284d17bc17170a51e (diff) | |
download | haskell-ad73370f6770480f1786aab8f2b7f5fe155152c8.tar.gz |
nativeGen/dwarf: Use DW_AT_linkage instead of DW_AT_MIPS_linkage
-rw-r--r-- | compiler/GHC/CmmToAsm/Dwarf/Constants.hs | 4 | ||||
-rw-r--r-- | compiler/GHC/CmmToAsm/Dwarf/Types.hs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/compiler/GHC/CmmToAsm/Dwarf/Constants.hs b/compiler/GHC/CmmToAsm/Dwarf/Constants.hs index 67137e1c57..ded0ea3237 100644 --- a/compiler/GHC/CmmToAsm/Dwarf/Constants.hs +++ b/compiler/GHC/CmmToAsm/Dwarf/Constants.hs @@ -48,7 +48,7 @@ dW_TAG_ghc_src_note = 0x5b00 -- * Dwarf attributes dW_AT_name, dW_AT_stmt_list, dW_AT_low_pc, dW_AT_high_pc, dW_AT_language, dW_AT_comp_dir, dW_AT_producer, dW_AT_external, dW_AT_frame_base, - dW_AT_use_UTF8, dW_AT_MIPS_linkage_name :: Word + dW_AT_use_UTF8, dW_AT_linkage_name :: Word dW_AT_name = 0x03 dW_AT_stmt_list = 0x10 dW_AT_low_pc = 0x11 @@ -59,7 +59,7 @@ dW_AT_producer = 0x25 dW_AT_external = 0x3f dW_AT_frame_base = 0x40 dW_AT_use_UTF8 = 0x53 -dW_AT_MIPS_linkage_name = 0x2007 +dW_AT_linkage_name = 0x6e -- * Custom DWARF attributes -- Chosen a more or less random section of the vendor-extensible region diff --git a/compiler/GHC/CmmToAsm/Dwarf/Types.hs b/compiler/GHC/CmmToAsm/Dwarf/Types.hs index 49ea91cfc5..736af3e942 100644 --- a/compiler/GHC/CmmToAsm/Dwarf/Types.hs +++ b/compiler/GHC/CmmToAsm/Dwarf/Types.hs @@ -105,7 +105,7 @@ pprAbbrevDecls platform haveDebugLine = -- DwAbbrSubprogramWithParent subprogramAttrs = [ (dW_AT_name, dW_FORM_string) - , (dW_AT_MIPS_linkage_name, dW_FORM_string) + , (dW_AT_linkage_name, dW_FORM_string) , (dW_AT_external, dW_FORM_flag) , (dW_AT_low_pc, dW_FORM_addr) , (dW_AT_high_pc, dW_FORM_addr) |