View Issue Details

IDProjectCategoryView StatusLast Update
0036345FPCCompilerpublic2019-11-24 15:01
ReporterAlfredAssigned ToFlorian 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformLinux x86_64OSOS Version
Product Version3.3.1Product Build 
Target VersionFixed in Version3.2.0 
Summary0036345: Error in linker script when building with sysroot.
DescriptionIf building with sysroot (using -XR as a compiler option), the custom linker script file contains an error preventing the executable from running.
(however, it does run using elevated (root) rights ...)

It all boils down to these line in t_linux.pas

if current_module.islibrary then
    add(' . = 0 + SIZEOF_HEADERS;')
else
    add(' PROVIDE (__executable_start = 0x0400000); . = 0x0400000 + SIZEOF_HEADERS;');
add(' . = 0 + SIZEOF_HEADERS;'); <------------------------------- ERROR !!!

As you can see, the last line of this code-snipped will always source the " . = 0 + SIZEOF_HEADERS;" !!
Additional InformationSame error in FPC fixes.
Would be good to fix fixes too.
TagsNo tags attached.
Fixed in Revision43571
FPCOldBugId
FPCTarget-
Attached Files

Activities

Florian

2019-11-24 13:19

administrator   ~0119473

Thanks applied to trunk and merged.

Alfred

2019-11-24 15:01

reporter   ~0119475

Thanks !

Issue History

Date Modified Username Field Change
2019-11-23 09:27 Alfred New Issue
2019-11-24 13:19 Florian Assigned To => Florian
2019-11-24 13:19 Florian Status new => resolved
2019-11-24 13:19 Florian Resolution open => fixed
2019-11-24 13:19 Florian Fixed in Version => 3.2.0
2019-11-24 13:19 Florian Fixed in Revision => 43571
2019-11-24 13:19 Florian FPCTarget => -
2019-11-24 13:19 Florian Note Added: 0119473
2019-11-24 15:01 Alfred Status resolved => closed
2019-11-24 15:01 Alfred Note Added: 0119475