comp: add support for -fdata-sections

This commit is contained in:
Jakub Konka
2023-10-04 15:16:52 +02:00
committed by Andrew Kelley
parent a306bfcd8e
commit 8b4e3b6aee
10 changed files with 85 additions and 12 deletions

View File

@@ -955,6 +955,7 @@ pub const Object = struct {
reloc_mode,
code_model,
options.function_sections,
options.data_sections,
float_abi,
if (target_util.llvmMachineAbi(options.target)) |s| s.ptr else null,
);

View File

@@ -919,6 +919,7 @@ pub const TargetMachine = opaque {
Reloc: RelocMode,
CodeModel: CodeModel,
function_sections: bool,
data_sections: bool,
float_abi: ABIType,
abi_name: ?[*:0]const u8,
) *TargetMachine;