summaryrefslogtreecommitdiffstats
path: root/spec/rtems/basedefs/req/weak-alias-0.yml
blob: 91c9ce0301fca03b9713aa090123d18b845d12db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
SPDX-License-Identifier: CC-BY-SA-4.0
copyrights:
- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
enabled-by: true
links:
- role: interface-function
  uid: ../if/weak-alias
non-functional-type: interface
rationale: null
references: []
requirement-type: non-functional
text: |
  When the code is compiled with the GNU C compiler,
  and the produced target file format is ELF or a.out,
  and argument ${../if/weak-alias:/params[0]/name} is a name of a function,
  and the macro ${../if/weak-alias:/name} call is in the same compilation unit
  as the function,
  and the macro is not used in block scope,
  and the macro is used in this form:
  ``<return-type> newname([argument-type-list]) ${../if/weak-alias:/name}(oldname)``;,
  and the ``<return-type>`` and ``argument-type-list`` match the
  signature of the function ``oldname``,
  and there is no other function symbol at global scope with the same name as
  ``newname``,
  the ${../if/weak-alias:/name} macro shall cause the compiler to create
  an additional name (``newname`` in the syntax) for the function
  given as argument ${../if/weak-alias:/params[0]/name}.
type: requirement