mirror of
https://github.com/cc65/cc65.git
synced 2024-09-29 17:56:21 +00:00
Allow to weaken globals or exports after the fact.
This commit is contained in:
parent
1c73128222
commit
fb0e51bd9b
@ -452,6 +452,11 @@ void SymGlobal (SymEntry* S, unsigned char AddrSize, unsigned Flags)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* In any case, mark the symbol as "weak", if it is not an import. This will
|
||||||
|
** allow declaring a global or an export, then "weaken" it afterwards.
|
||||||
|
*/
|
||||||
|
S->Flags |= (Flags & SF_WEAK);
|
||||||
|
|
||||||
/* If the symbol is already an export: If it is not defined, the address
|
/* If the symbol is already an export: If it is not defined, the address
|
||||||
** sizes must match.
|
** sizes must match.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user