|
@@ -65,6 +65,8 @@ SECTIONS {
|
65
|
65
|
. = _text16_link_addr;
|
66
|
66
|
_text16 = .;
|
67
|
67
|
|
|
68
|
+ . += 1; /* Prevent NULL being valid */
|
|
69
|
+
|
68
|
70
|
.text16 : AT ( _text16_load_offset + __text16 ) {
|
69
|
71
|
__text16 = .;
|
70
|
72
|
*(.text16)
|
|
@@ -78,6 +80,8 @@ SECTIONS {
|
78
|
80
|
. = _data16_link_addr;
|
79
|
81
|
_data16 = .;
|
80
|
82
|
|
|
83
|
+ . += 1; /* Prevent NULL being valid */
|
|
84
|
+
|
81
|
85
|
.rodata16 : AT ( _data16_load_offset + __rodata16 ) {
|
82
|
86
|
__rodata16 = .;
|
83
|
87
|
*(.rodata16)
|
|
@@ -115,6 +119,8 @@ SECTIONS {
|
115
|
119
|
|
116
|
120
|
_text = .;
|
117
|
121
|
|
|
122
|
+ . += 1; /* Prevent NULL being valid */
|
|
123
|
+
|
118
|
124
|
.text : AT ( _textdata_load_offset + __text ) {
|
119
|
125
|
__text = .;
|
120
|
126
|
*(.text.null_trap)
|