aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaul Ouellette <[email protected]>2022-02-10 20:27:29 -0500
committerQuentin Carbonneaux <[email protected]>2022-02-11 08:45:32 +0100
commit9fc0394d7ed2b86be9eae7f2b410e83fbe3ae497 (patch)
tree1e5dc51ced8e981ce66954cd6b9d1f88ef096be8 /doc
parent2ca6fb25a238842418019a3f9ee8d1beb1327f7e (diff)
doc: fix name of export linkage flag
Diffstat (limited to 'doc')
-rw-r--r--doc/il.txt9
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/il.txt b/doc/il.txt
index b667b64..8713e0d 100644
--- a/doc/il.txt
+++ b/doc/il.txt
@@ -202,7 +202,7 @@ constants by the linker.
`bnf
LINKAGE :=
- 'extern'
+ 'export'
| 'section' SECNAME
| 'section' SECNAME SECFLAGS
@@ -213,11 +213,10 @@ Function and data definitions (see below) can specify
linkage information to be passed to the assembler and
eventually to the linker.
-The `extern` linkage flag marks the defined item as
+The `export` linkage flag marks the defined item as
visible outside the current file's scope. If absent,
the symbol can only be referred to locally. Functions
-compiled by QBE and called from C need to have extern
-linkage.
+compiled by QBE and called from C need to be exported.
A `section` flag can be specified to tell the linker to
put the defined item in a certain section. The use of
@@ -232,7 +231,7 @@ Example uses of the section flag include adding function
pointers to a global initialization list, or storing a
zeroed object in the BSS section, as depicted above.
-The section and extern linkage flags should each appear
+The section and export linkage flags should each appear
at most once in a definition. If multiple occurrences
are present, QBE is free to use any.