|
@@ -1791,7 +1791,10 @@ Implementation
|
|
eattrtype_dword:
|
|
eattrtype_dword:
|
|
eabi_section.alloc(LengthUleb128(tai_eabi_attribute(hp).value));
|
|
eabi_section.alloc(LengthUleb128(tai_eabi_attribute(hp).value));
|
|
eattrtype_ntbs:
|
|
eattrtype_ntbs:
|
|
- eabi_section.alloc(Length(tai_eabi_attribute(hp).valuestr^)+1);
|
|
|
|
|
|
+ if assigned(tai_eabi_attribute(hp).valuestr) then
|
|
|
|
+ eabi_section.alloc(Length(tai_eabi_attribute(hp).valuestr^)+1)
|
|
|
|
+ else
|
|
|
|
+ eabi_section.alloc(1);
|
|
else
|
|
else
|
|
Internalerror(2019100701);
|
|
Internalerror(2019100701);
|
|
end;
|
|
end;
|
|
@@ -1969,7 +1972,10 @@ Implementation
|
|
eattrtype_dword:
|
|
eattrtype_dword:
|
|
eabi_section.alloc(LengthUleb128(tai_eabi_attribute(hp).value));
|
|
eabi_section.alloc(LengthUleb128(tai_eabi_attribute(hp).value));
|
|
eattrtype_ntbs:
|
|
eattrtype_ntbs:
|
|
- eabi_section.alloc(Length(tai_eabi_attribute(hp).valuestr^)+1);
|
|
|
|
|
|
+ if assigned(tai_eabi_attribute(hp).valuestr) then
|
|
|
|
+ eabi_section.alloc(Length(tai_eabi_attribute(hp).valuestr^)+1)
|
|
|
|
+ else
|
|
|
|
+ eabi_section.alloc(1);
|
|
else
|
|
else
|
|
Internalerror(2019100703);
|
|
Internalerror(2019100703);
|
|
end;
|
|
end;
|
|
@@ -2336,7 +2342,10 @@ Implementation
|
|
end;
|
|
end;
|
|
eattrtype_ntbs:
|
|
eattrtype_ntbs:
|
|
begin
|
|
begin
|
|
- s:=tai_eabi_attribute(hp).valuestr^+#0;
|
|
|
|
|
|
+ if assigned(tai_eabi_attribute(hp).valuestr) then
|
|
|
|
+ s:=tai_eabi_attribute(hp).valuestr^+#0
|
|
|
|
+ else
|
|
|
|
+ s:=#0;
|
|
eabi_section.write(s[1],Length(s));
|
|
eabi_section.write(s[1],Length(s));
|
|
end
|
|
end
|
|
else
|
|
else
|