344b1e0f5f7 Introduced range-check 3rd argument of .align, incorrect
value are not converted silently. added warning message to fix regression.
#as:
#objdump: -dr
#skip: loongarch32-*-*
+#warning_output: relax_align.l
.*:[ ]+file format .*
[ ]+68:[ ]+03400000[ ]+nop
[ ]+6c:[ ]+03400000[ ]+nop
[ ]+70:[ ]+4c000020[ ]+ret
+[ ]+74:[ ]+03400000[ ]+nop
+[ ]+74: R_LARCH_ALIGN[ ]+\*ABS\*\+0xc
+[ ]+78:[ ]+03400000[ ]+nop
+[ ]+7c:[ ]+03400000[ ]+nop
+[ ]+80:[ ]+4c000020[ ]+ret
--- /dev/null
+.*Assembler messages:
+.*: Warning: ignoring out of range alignment maximum
+.*: Warning: ignoring out of range alignment maximum
-# If max < -0x80000000, max becomes a positive number because type conversion
-# (bfd_signed_vma -> unsigned int).
+# Range of max: 0<= max <= 0xffffffff
.text
.L1:
ret
ret
.align 4, , 12
ret
+ .align 4, , 0xffffffff
+ ret
+# ignore out of range alignment maxumum
.align 4, , -1
ret
.align 4, , -0x80000000