aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 21ca4c398..8f426f116 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -2650,6 +2650,16 @@ DECL_ATTRIBUTE_PROC(var_decl_attribute) {
error(elem, "Expected a string value for '%.*s'", LIT(name));
}
return true;
+ } else if (name == "link_section") {
+ if (ev.kind == ExactValue_String) {
+ ac->link_section = ev.value_string;
+ if (!is_foreign_name_valid(ac->link_section)) {
+ error(elem, "Invalid link section: %.*s", LIT(ac->link_section));
+ }
+ } else {
+ error(elem, "Expected a string value for '%.*s'", LIT(name));
+ }
+ return true;
}
return false;
}