mirror of
https://github.com/mikpe/pdp10-tools.git
synced 2026-01-22 18:42:34 +00:00
ld: ld_phase1: only collect SHF_ALLOC sections
This commit is contained in:
parent
a10bc2104c
commit
775358fd5c
@ -32,7 +32,7 @@
|
||||
%% flags should be concatenated into single sections. The concatenation order
|
||||
%% should satisfy the requirements of any known input section attributes (e.g,
|
||||
%% SHF_MERGE and SHF_LINK_ORDER). When not otherwise constrained, sections
|
||||
%% should be emitted in input order. "
|
||||
%% should be emitted in input order."
|
||||
|
||||
-spec phase1([#input{}]) -> [#section{}].
|
||||
phase1(Inputs) ->
|
||||
@ -146,6 +146,7 @@ should_output_type(Type) ->
|
||||
end.
|
||||
|
||||
should_output_flags(Flags) ->
|
||||
(Flags band ?SHF_ALLOC) =/= 0 andalso
|
||||
(Flags band bnot (?SHF_WRITE bor
|
||||
?SHF_ALLOC bor
|
||||
?SHF_EXECINSTR bor
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user