llvm-project/llvm/lib/MC
esmeyi b1847ff068 [XCOFF] write the aux header when the visibility is specified in XCOFF32.
The n_type field in the symbol table entry has two interpretations in XCOFF32, and a single interpretation in XCOFF64.
The new interpretation is used in XCOFF32 if the value of the o_vstamp field in the auxiliary header is 2.
In XCOFF64 and the new XCOFF32 interpretation, the n_type field is used for the symbol type and visibility.
The patch writes the aux header with an o_vstamp field value of 2 when the visibility is specified in XCOFF32 to make the new XCOFF32 interpretation used.

Reviewed By: DiggerLin, jhenderson

Differential Revision: https://reviews.llvm.org/D128148
2022-07-20 07:09:34 -04:00
..
MCDisassembler [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
MCParser Use drop_begin (NFC) 2022-07-15 23:24:59 -07:00
CMakeLists.txt [DirectX][MC] Add MC support for DXContainer 2022-06-17 21:19:32 -05:00
ConstantPools.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
ELFObjectWriter.cpp Remove zlibgnu support in llvm-mc 2022-07-14 22:38:59 +00:00
MCAsmBackend.cpp [DirectX][MC] Add MC support for DXContainer 2022-06-17 21:19:32 -05:00
MCAsmInfo.cpp [MC] Make MCAsmInfo::isAcceptableChar reflect MCAsmInfo::doesAllowAtInName 2022-03-29 14:01:32 -07:00
MCAsmInfoCOFF.cpp
MCAsmInfoDarwin.cpp
MCAsmInfoELF.cpp
MCAsmInfoGOFF.cpp
MCAsmInfoWasm.cpp
MCAsmInfoXCOFF.cpp
MCAsmMacro.cpp
MCAsmStreamer.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
MCAssembler.cpp Revert "Rebase: [Facebook] [MC] Introduce NeverAlign fragment type" 2022-07-11 09:50:47 -07:00
MCCodeEmitter.cpp
MCCodeView.cpp [MC] Lower case the first letter of EmitCOFF* EmitWin* EmitCV*. NFC 2022-05-26 00:14:08 -07:00
MCContext.cpp [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
MCDXContainerStreamer.cpp [DirectX][MC] Add MC support for DXContainer 2022-06-17 21:19:32 -05:00
MCDXContainerWriter.cpp [llvm] Don't use Optional::hasValue (NFC) 2022-06-20 10:38:12 -07:00
MCDwarf.cpp Don't use Optional::hasValue (NFC) 2022-06-20 20:17:57 -07:00
MCELFObjectTargetWriter.cpp
MCELFStreamer.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
MCExpr.cpp [NVPTX] Disable parens for identifiers starting with '$' 2022-04-17 18:02:33 +03:00
MCFragment.cpp Revert "Rebase: [Facebook] [MC] Introduce NeverAlign fragment type" 2022-07-11 09:50:47 -07:00
MCInst.cpp
MCInstPrinter.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCInstrAnalysis.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCInstrDesc.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCInstrInfo.cpp
MCLabel.cpp
MCLinkerOptimizationHint.cpp
MCMachOStreamer.cpp [MC][MachO] Change addrsig format + ensure its size is properly set 2022-07-19 21:22:23 -04:00
MCMachObjectTargetWriter.cpp
MCNullStreamer.cpp [MC] De-capitalize MCStreamer functions 2022-06-07 00:31:02 -07:00
MCObjectFileInfo.cpp [DirectX][MC] Add MC support for DXContainer 2022-06-17 21:19:32 -05:00
MCObjectStreamer.cpp Revert "Rebase: [Facebook] [MC] Introduce NeverAlign fragment type" 2022-07-11 09:50:47 -07:00
MCObjectWriter.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCPseudoProbe.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
MCRegisterInfo.cpp [MC] Define and use MCRegisterInfo::regsOverlap 2022-02-14 20:46:02 +00:00
MCSPIRVStreamer.cpp [SPIR-V](3/6) Add MC layer, object file support, and InstPrinter 2022-04-20 01:10:25 +02:00
MCSchedule.cpp [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
MCSection.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCSectionCOFF.cpp [MC] Fix letter case of some MCSection member functions 2022-03-11 20:07:00 -08:00
MCSectionDXContainer.cpp [DirectX][MC] Add MC support for DXContainer 2022-06-17 21:19:32 -05:00
MCSectionELF.cpp [Object] Add ELF section type for offloading objects 2022-07-07 12:20:30 -04:00
MCSectionMachO.cpp [MC] Allow annotating custom sections as zerofill 2022-06-28 15:08:47 +01:00
MCSectionWasm.cpp [MC] Fix letter case of some MCSection member functions 2022-03-11 20:07:00 -08:00
MCSectionXCOFF.cpp [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
MCStreamer.cpp Revert "Rebase: [Facebook] [MC] Introduce NeverAlign fragment type" 2022-07-11 09:50:47 -07:00
MCSubtargetInfo.cpp
MCSymbol.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCSymbolELF.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCSymbolXCOFF.cpp
MCTargetOptions.cpp [MC][re-land] Omit DWARF unwind info if compact unwind is present where eligible 2022-06-12 17:24:19 -04:00
MCTargetOptionsCommandFlags.cpp [MC][re-land] Omit DWARF unwind info if compact unwind is present where eligible 2022-06-12 17:24:19 -04:00
MCValue.cpp
MCWasmObjectTargetWriter.cpp
MCWasmStreamer.cpp [LLVM] Add exported visibility style for XCOFF 2022-04-28 14:56:00 -04:00
MCWin64EH.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
MCWinCOFFStreamer.cpp [MC] De-capitalize SwitchSection. NFC 2022-06-10 22:50:55 -07:00
MCWinEH.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
MCXCOFFObjectTargetWriter.cpp
MCXCOFFStreamer.cpp [LLVM] Add exported visibility style for XCOFF 2022-04-28 14:56:00 -04:00
MachObjectWriter.cpp [MC][MachO] Change addrsig format + ensure its size is properly set 2022-07-19 21:22:23 -04:00
SPIRVObjectWriter.cpp [SPIR-V](3/6) Add MC layer, object file support, and InstPrinter 2022-04-20 01:10:25 +02:00
StringTableBuilder.cpp
SubtargetFeature.cpp Cleanup LLVMMC headers 2022-02-09 11:09:17 +01:00
TargetRegistry.cpp TargetRegistry: Don't add "error" to error messages 2022-04-19 22:29:16 -04:00
WasmObjectWriter.cpp [llvm] Use value_or instead of getValueOr (NFC) 2022-06-18 23:07:11 -07:00
WinCOFFObjectWriter.cpp [MC] Avoid UAF in WinCOFFObjectWriter with weak symbols. 2022-07-16 13:24:08 +03:00
XCOFFObjectWriter.cpp [XCOFF] write the aux header when the visibility is specified in XCOFF32. 2022-07-20 07:09:34 -04:00