Debian Codegraph @

debian/rust-vendor/defmt/defmt.x.in

raw
1 /* exhaustively search for these symbols */
2 EXTERN(_defmt_acquire);
3 EXTERN(_defmt_release);
4 EXTERN(__defmt_default_timestamp);
5 EXTERN(__DEFMT_MARKER_TIMESTAMP_WAS_DEFINED);
6 PROVIDE(_defmt_timestamp = __defmt_default_timestamp);
7 PROVIDE(_defmt_panic = __defmt_default_panic);
8
9 SECTIONS
10 {
11
12 /* `1` specifies the start address of this virtual (`(INFO)`) section */
13 /* Tag number 0 is reserved for special uses, like as a format sequence terminator. */
14 .defmt 1 (INFO) :
15 {
16 /* For some reason the `1` above has no effect, but this does */
17 . = 1;
18
19 /* Format implementations for primitives like u8 */
20 *(.defmt.prim.*);
21
22 /* We order the ids of the log messages by severity and put markers in between, so that we can filter logs at runtime by severity */
23 __DEFMT_MARKER_TRACE_START = .;
24 *(.defmt.trace.*);
25 __DEFMT_MARKER_TRACE_END = .;
26 __DEFMT_MARKER_DEBUG_START = .;
27 *(.defmt.debug.*);
28 __DEFMT_MARKER_DEBUG_END = .;
29 __DEFMT_MARKER_INFO_START = .;
30 *(.defmt.info.*);
31 __DEFMT_MARKER_INFO_END = .;
32 __DEFMT_MARKER_WARN_START = .;
33 *(.defmt.warn.*);
34 __DEFMT_MARKER_WARN_END = .;
35 __DEFMT_MARKER_ERROR_START = .;
36 *(.defmt.error.*);
37 __DEFMT_MARKER_ERROR_END = .;
38
39 /* Everything user-defined */
40 *(.defmt.*);
41
42 __DEFMT_MARKER_END = .;
43
44 /* Symbols that aren't referenced by the program and */
45 /* should be placed at the end of the section */
46 KEEP(*(.defmt.end .defmt.end.*));
47 }
48 }
49
50 ASSERT(__DEFMT_MARKER_END < 65534, ".defmt section cannot contain more than 65534 interned strings");