summaryrefslogtreecommitdiff
path: root/compiler/ogrel.pas
diff options
context:
space:
mode:
authornickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2>2020-06-07 20:47:37 +0000
committernickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2>2020-06-07 20:47:37 +0000
commitd1d97c59e97ca810fc7c0ae1c374a7aa027ca095 (patch)
tree1dc838e1c287cda84f314c0f5080f3924a1fb42a /compiler/ogrel.pas
parent37a65ce5dfbe873819bf2919be52d9a4d6950092 (diff)
downloadfpc-d1d97c59e97ca810fc7c0ae1c374a7aa027ca095.tar.gz
+ added the 'AREA' directive support to the Z80 inline assembler, that allows
you to define custom sections git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@45617 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/ogrel.pas')
-rw-r--r--compiler/ogrel.pas5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/ogrel.pas b/compiler/ogrel.pas
index bb4a2b4493..0fcd1cf412 100644
--- a/compiler/ogrel.pas
+++ b/compiler/ogrel.pas
@@ -314,7 +314,10 @@ implementation
'.ARM.attributes'
);
begin
- result:=secnames[atype];
+ if atype=sec_user then
+ result:=aname
+ else
+ result:=secnames[atype];
end;
function TRelObjData.sectiontype2align(atype:TAsmSectiontype):longint;