mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-06 09:38:23 +02:00
* don't add ".reference" assembler directives on Darwin for symbols that are
in sections marked as "no_dead_strip" git-svn-id: trunk@34387 -
This commit is contained in:
parent
ae51adac18
commit
d664038aa4
@ -949,8 +949,15 @@ implementation
|
||||
kept via the linker script) }
|
||||
if tcalo_no_dead_strip in options then
|
||||
begin
|
||||
if target_info.system in systems_darwin then
|
||||
if (target_info.system in systems_darwin) then
|
||||
begin
|
||||
{ Objective-C section declarations contain "no_dead_strip"
|
||||
attributes if none of their symbols need to be stripped -> don't
|
||||
add extra ".reference" statement for their symbols (gcc/clang
|
||||
don't either) }
|
||||
if not(section in [low(TObjCAsmSectionType)..high(TObjCAsmSectionType)]) then
|
||||
prelist.concat(tai_directive.Create(asd_reference,sym.name))
|
||||
end
|
||||
else if section<>sec_fpc then
|
||||
internalerror(2015101402);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user