diff options
author | sergei <sergei@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2013-01-11 17:14:44 +0000 |
---|---|---|
committer | sergei <sergei@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2013-01-11 17:14:44 +0000 |
commit | fe3232aacf00a029a3904a8d8611d71b4641462b (patch) | |
tree | 74f1fc87394ab51306aff4846e227883e6389898 | |
parent | 704f38890b5afbc00364fb827103840edeca434d (diff) | |
download | fpc-fe3232aacf00a029a3904a8d8611d71b4641462b.tar.gz |
- TObjData.sectiontype2options: removed oso_keep flags. They don't have any effect here because this function is used only during assembling, and oso_keep cannot be represented in object files and therefore gets lost before linking.
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@23364 3ad0048d-3df7-0310-abae-a5850022a9f2
-rw-r--r-- | compiler/ogbase.pas | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/compiler/ogbase.pas b/compiler/ogbase.pas index 96e4c6ec8c..fe43662e8e 100644 --- a/compiler/ogbase.pas +++ b/compiler/ogbase.pas @@ -987,22 +987,18 @@ implementation function TObjData.sectiontype2options(atype:TAsmSectiontype):TObjSectionOptions; const secoptions : array[TAsmSectiontype] of TObjSectionOptions = ([], - {user} [oso_Data,oso_load,oso_write,oso_keep], - {code} [oso_Data,oso_load,oso_executable,oso_keep], - {Data} [oso_Data,oso_load,oso_write,oso_keep], + {user} [oso_Data,oso_load,oso_write], + {code} [oso_Data,oso_load,oso_executable], + {Data} [oso_Data,oso_load,oso_write], { Readonly data with relocations must be initially writable for some targets. Moreover, e.g. for ELF it depends on whether the executable is linked statically or dynamically. Here we declare it writable, target-specific descendants must provide further handling. } - {roData} [oso_Data,oso_load,oso_write,oso_keep], - {roData_norel} [oso_Data,oso_load,oso_keep], - {bss} [oso_load,oso_write,oso_keep], - {threadvar} [oso_load,oso_write -{$ifdef FPC_USE_TLS_DIRECTORY} - ,oso_keep -{$endif FPC_USE_TLS_DIRECTORY} - ], - {pdata} [oso_data,oso_load {$ifndef x86_64},oso_keep{$endif}], + {roData} [oso_Data,oso_load,oso_write], + {roData_norel} [oso_Data,oso_load], + {bss} [oso_load,oso_write], + {threadvar} [oso_load,oso_write], + {pdata} [oso_data,oso_load], {stub} [oso_Data,oso_load,oso_executable], {data_nonlazy} [oso_Data,oso_load,oso_write], {data_lazy} [oso_Data,oso_load,oso_write], @@ -1021,10 +1017,10 @@ implementation {debug_info} [oso_Data,oso_debug], {debug_line} [oso_Data,oso_debug], {debug_abbrev} [oso_Data,oso_debug], - {fpc} [oso_Data,oso_load,oso_write,oso_keep], + {fpc} [oso_Data,oso_load,oso_write], {toc} [oso_Data,oso_load], - {init} [oso_Data,oso_load,oso_executable,oso_keep], - {fini} [oso_Data,oso_load,oso_executable,oso_keep], + {init} [oso_Data,oso_load,oso_executable], + {fini} [oso_Data,oso_load,oso_executable], {objc_class} [oso_data,oso_load], {objc_meta_class} [oso_data,oso_load], {objc_cat_cls_meth} [oso_data,oso_load], |