-incdir 语句应该如何用于库映射定义?

how the -incdir statement is supposed to be used in library mapping definitions?

该标准提供了在库映射中使用“-incdir”的语法:

library_declaration ::=
library library_identifier file_path_spec { , file_path_spec }
[ -incdir file_path_spec { , file_path_spec } ] ;

然而,在标准中没有任何地方定义它的行为,至少我找不到它。

相对文件名有一个特定的子句:

. specifies the directory containing the lib.map

Paths that do not begin with / are relative to the directory in which the current lib.map file is located.

因此,-incdir 语句没有位置。

有人能解释一下它的行为吗?

这是继承自 IEEE 1364 标准的 IEEE 1800 标准中的一个 open issue。您将需要查看所用工具的文档。但总的来说,这意味着该目录中的任何文件都将包含到该库中。