mirror of
https://github.com/cc65/cc65.git
synced 2024-07-01 23:29:41 +00:00
Fixed a problem: For symbols of type weak or external defined in the linker
config, a value is mandatory, but the check inside the code checked for the TYPE attribute instead of the VALUE attribute. git-svn-id: svn://svn.cc65.org/cc65/trunk@5357 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
4127923ad1
commit
e935c8fead
|
@ -1413,7 +1413,7 @@ static void ParseSymbols (void)
|
||||||
|
|
||||||
case CfgSymExport:
|
case CfgSymExport:
|
||||||
/* We must have a value */
|
/* We must have a value */
|
||||||
AttrCheck (AttrFlags, atType, "TYPE");
|
AttrCheck (AttrFlags, atValue, "VALUE");
|
||||||
/* Create the export */
|
/* Create the export */
|
||||||
Exp = CreateExprExport (Name, Value, AddrSize);
|
Exp = CreateExprExport (Name, Value, AddrSize);
|
||||||
CollAppend (&Exp->DefLines, GenLineInfo (&CfgErrorPos));
|
CollAppend (&Exp->DefLines, GenLineInfo (&CfgErrorPos));
|
||||||
|
@ -1432,7 +1432,7 @@ static void ParseSymbols (void)
|
||||||
|
|
||||||
case CfgSymWeak:
|
case CfgSymWeak:
|
||||||
/* We must have a value */
|
/* We must have a value */
|
||||||
AttrCheck (AttrFlags, atType, "TYPE");
|
AttrCheck (AttrFlags, atValue, "VALUE");
|
||||||
/* Remember the symbol for later */
|
/* Remember the symbol for later */
|
||||||
Sym = NewCfgSymbol (CfgSymWeak, Name);
|
Sym = NewCfgSymbol (CfgSymWeak, Name);
|
||||||
Sym->Value = Value;
|
Sym->Value = Value;
|
||||||
|
@ -1928,7 +1928,7 @@ unsigned CfgProcess (void)
|
||||||
SB_Printf (&Buf, "__%s_LAST__", GetString (M->Name));
|
SB_Printf (&Buf, "__%s_LAST__", GetString (M->Name));
|
||||||
E = CreateMemoryExport (GetStrBufId (&Buf), M, M->FillLevel);
|
E = CreateMemoryExport (GetStrBufId (&Buf), M, M->FillLevel);
|
||||||
CollAppend (&E->DefLines, M->LI);
|
CollAppend (&E->DefLines, M->LI);
|
||||||
|
|
||||||
/* Define the file offset of the memory area. This isn't of much
|
/* Define the file offset of the memory area. This isn't of much
|
||||||
* use for relocatable output files.
|
* use for relocatable output files.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user