Changes between Version 2 and Version 3 of Ticket #10402, comment 9
- Timestamp:
- Jan 13, 2014, 1:00:48 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10402, comment 9
v2 v3 1 1 Dropping static from patch 3 would obviously cause linking errors, as every file including that .h would then emit that symbol. The static is very important here. It could be changed to a define, but the difference would only be that it is not typed anymore. 2 2 3 As for patch 6, it seems `__dso_handle` only needs to be definedbecause only its address is used (see also http://www.lowlevel.eu/wiki/C%2B%2B and http://wiki.osdev.org/C%2B%2B). Initializing it would also move it from section .bss to section .data - that is not really desirable.3 As for patch 6, it seems `__dso_handle` does not need to have a value because only its address is used (see also http://www.lowlevel.eu/wiki/C%2B%2B and http://wiki.osdev.org/C%2B%2B). Initializing it would also move it from section .bss to section .data - that is not really desirable.