Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
weak_bss_1109_to_1009.h
Go to the documentation of this file.
1#ifndef WEAK_BSS_1109_TO_1009_H
2#define WEAK_BSS_1109_TO_1009_H
3
4// Fake header.
5// These are some kind of weak objects that get included in the .bss sections of several TUs.
6// They each have size 1, and alignment 1 in TWW's debug maps, but alignment 4 in the non-debug maps.
7// Their true source is currently unknown, so include this header in TUs that need them to match for now.
8
9// A possible origin for one of these could be the constructor of TFunctionValueAttribute_refer in
10// functionvalue.h. That constructor includes `JGadget::TAllocator<void*>()` in it, which produces
11// one weak bss object that has the correct size and alignment. However, we need 16 of them, while
12// that only creates one.
13
14#include "JSystem/JStudio/JStudio/functionvalue.h" // IWYU pragma: keep
15
16// They each have size 1, and alignment 1 in TWW's debug maps, but alignment 4 in the non-debug maps.
17static inline void dummy_bss_1009_to_1109() {
18 // JGadget::TAllocator<void*>(); // @1109 // Already covered by TFunctionValueAttribute_refer's ctor
34}
35
36#endif // WEAK_BSS_1109_TO_1009_H
Definition std-memory.h:8
static void dummy_bss_1009_to_1109()
Definition weak_bss_1109_to_1009.h:17