Changes between Version 2 and Version 3 of Ticket #10402, comment 9


Ignore:
Timestamp:
Jan 13, 2014, 1:00:48 PM (10 years ago)
Author:
js

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10402, comment 9

    v2 v3  
    11Dropping 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.
    22
    3 As for patch 6, it seems `__dso_handle` only needs to be defined 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.
     3As 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.