Skip to content

Commit

Permalink
Support certian .long directive expressions emitted by gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
torben-hansen committed Jan 30, 2024
1 parent ee478f2 commit 1214025
Show file tree
Hide file tree
Showing 4 changed files with 2,265 additions and 2,255 deletions.
2 changes: 1 addition & 1 deletion util/fipstools/delocate/delocate.peg
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ LabelContainingDirectiveName <- ".xword" / ".word" / ".long" / ".set" / ".byte"
SymbolArgs <- SymbolArg ((WS? ',' WS?) SymbolArg)*
SymbolArg <- SymbolExpr
SymbolExpr <- SymbolAtom (WS? SymbolOperator WS? SymbolExpr)?
SymbolAtom <- Offset / SymbolType / LocalSymbol TCMarker? / SymbolName Offset / SymbolName TCMarker? / Dot / OpenParen WS? SymbolExpr WS? CloseParen
SymbolAtom <- Offset / SymbolType / LocalLabelRef / LocalSymbol TCMarker? / SymbolName Offset / SymbolName TCMarker? / Dot / OpenParen WS? SymbolExpr WS? CloseParen
SymbolOperator <- '+' / '-' / '|' / '<<' / '>>'

OpenParen <- '('
Expand Down
Loading

0 comments on commit 1214025

Please sign in to comment.