The gas manual shows using a #, while gas itself actually doesn't
support that syntax. Make it optional to keep supporting building
earlier versions of libav which used this syntax.
---
gas-preprocessor.pl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
index f4a55a9..ad2dd9c 100755
--- a/gas-preprocessor.pl
+++ b/gas-preprocessor.pl
@@ -668,9 +668,9 @@ sub handle_serialized_line {
}
# handle GNU as pc-relative relocations for adrp/add
- if ($line =~ /(.*)\s*adrp([\w\s\d]+)\s*,\s*#:pg_hi21:([^\s]+)/) {
+ if ($line =~ /(.*)\s*adrp([\w\s\d]+)\s*,\s*#?:pg_hi21:([^\s]+)/) {
$line = "$1 adrp$2, ${3}\@PAGE\n";
- } elsif ($line =~
/(.*)\s*add([\w\s\d]+)\s*,([\w\s\d]+)\s*,\s*#:lo12:([^\s]+)/) {
+ } elsif ($line =~
/(.*)\s*add([\w\s\d]+)\s*,([\w\s\d]+)\s*,\s*#?:lo12:([^\s]+)/) {
$line = "$1 add$2, $3, ${4}\@PAGEOFF\n";
}
--
1.8.5.2 (Apple Git-48)
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel