1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/lib
Yonghong Song a5ededd556 BPF: remove default .extern data section
Currently, for any extern variable, if it doesn't have
section attribution, it will be put into a default ".extern"
btf DataSec. The initial design is to put every extern
variable in a DataSec so libbpf can use it.

But later on, libbpf actually requires extern variables
to put into special sections, e.g., ".kconfig", ".ksyms", etc.
so they can be used properly based on section name.

Andrii mentioned since ".extern" variables are
not actually used, it makes sense to remove it from
the compiler so libbpf does not need to deal with it,
esp. for static linking. The BTF for these extern variables
is still generated.

With this patch, I tested kernel selftests/bpf and all tests
passed. Indeed, removing ".extern" DataSec seems having no
impact.

Differential Revision: https://reviews.llvm.org/D100392
2021-04-13 11:35:52 -07:00
..
Analysis [SCEV] Don't walk uses of phis without SCEV expression when forgetting 2021-04-13 20:28:17 +02:00
AsmParser
BinaryFormat
Bitcode
Bitstream
CodeGen StackProtector: ensure protection does not interfere with tail call frame. 2021-04-13 15:14:57 +01:00
DebugInfo [CodeView] Fix the ARM64 CPUType enum 2021-04-13 12:54:22 +03:00
Demangle
DWARFLinker [dsymutil] Stop emulating dsymutil-classic CIE caching behavior 2021-04-06 20:15:41 -07:00
ExecutionEngine
Extensions
FileCheck
Frontend
Fuzzer
FuzzMutate
InterfaceStub
IR Revert "Reapply "[DebugInfo] Use variadic debug values to salvage BinOps and GEP instrs with non-const operands"" 2021-04-12 20:10:17 -07:00
IRReader
LineEditor
Linker
LTO [SystemZ][z/OS][Windows] Add new OF_TextWithCRLF flag and use this flag instead of OF_Text 2021-04-06 07:23:31 -04:00
MC [AsmParser][SystemZ][z/OS] Add in support to allow use of additional comment strings. 2021-04-13 11:15:09 -04:00
MCA
Object [TextAPI] move source code files out of subdirectory, NFC 2021-04-05 10:24:42 -07:00
ObjectYAML [lld] Fixed CodeView GuidAdapter::format to handle GUID bytes in the right order. 2021-04-09 05:29:14 +04:00
Option
Passes [Passes] Add relative lookup table converter pass 2021-04-13 01:29:41 +00:00
ProfileData [CSSPGO] Fix dangling context strings and improve profile order consistency and error handling 2021-04-10 12:39:10 -07:00
Remarks
Support [X86] Support -march=rocketlake 2021-04-13 09:48:13 +08:00
TableGen [TableGen] Fix bug in recent change to ListInit::convertInitListSlice() 2021-04-12 09:44:39 -04:00
Target BPF: remove default .extern data section 2021-04-13 11:35:52 -07:00
Testing
TextAPI [TextAPI] move source code files out of subdirectory, NFC 2021-04-05 10:24:42 -07:00
ToolDrivers
Transforms [GlobalOpt] Revert valgrind hacks 2021-04-13 19:11:10 +03:00
WindowsManifest
XRay
CMakeLists.txt