Module: gas-preprocessor
Branch: master
Commit: c101201b896b0a77fb28cfb60f45a3807142e8a8

Author:    Martin Storsjo <mar...@martin.st>
Committer: Martin Storsjo <mar...@martin.st>
Date:      Tue Mar  6 10:50:53 2018 +0200

Don't skip negative offsets for ldr by default for armasm64

The version of armasm64 in Visual Studio 2017 15.6 can assemble
these just fine.

---

 gas-preprocessor.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gas-preprocessor.pl b/gas-preprocessor.pl
index c689571..340f721 100755
--- a/gas-preprocessor.pl
+++ b/gas-preprocessor.pl
@@ -973,8 +973,8 @@ sub handle_serialized_line {
                 my $reg = $1;
                 my $sym = $2;
                 my $offset = eval_expr($3);
-                if ($offset < 0) {
-                    # armasm64 is buggy with ldr x0, =sym+offset where the
+                if ($offset < 0 and $ENV{GASPP_ARMASM64_SKIP_NEG_OFFSET}) {
+                    # armasm64 in VS < 15.6 is buggy with ldr x0, =sym+offset 
where the
                     # offset is a negative value; it does write a negative
                     # offset into the literal pool as it should, but the
                     # negative offset only covers the lower 32 bit of the 64

_______________________________________________
libav-commits mailing list
libav-commits@libav.org
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to