Teach delocate about a new directive that Clang is using.

The latest Clang will generate `.hword`.

Change-Id: Ibdb0356049725c758c20f23fc3c9b60a75c28751
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/63646
Reviewed-by: David Benjamin <davidben@google.com>
Auto-Submit: Adam Langley <agl@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
chromium-stable
Adam Langley 1 year ago committed by Boringssl LUCI CQ
parent c38dc29860
commit 672813c21e
  1. 2
      util/fipstools/delocate/delocate.peg
  2. 4540
      util/fipstools/delocate/delocate.peg.go

@ -45,7 +45,7 @@ Arg <- QuotedArg / [[0-9a-z%+\-*_@.]]*
QuotedArg <- '"' QuotedText '"'
QuotedText <- (EscapedChar / [^"])*
LabelContainingDirective <- LabelContainingDirectiveName WS SymbolArgs
LabelContainingDirectiveName <- ".xword" / ".word" / ".long" / ".set" / ".byte" / ".8byte" / ".4byte" / ".quad" / ".tc" / ".localentry" / ".size" / ".type" / ".uleb128" / ".sleb128"
LabelContainingDirectiveName <- ".xword" / ".word" / ".hword" / ".long" / ".set" / ".byte" / ".8byte" / ".4byte" / ".quad" / ".tc" / ".localentry" / ".size" / ".type" / ".uleb128" / ".sleb128"
SymbolArgs <- SymbolArg ((WS? ',' WS?) SymbolArg)*
SymbolArg <- SymbolExpr

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save