[llvm-bugs] [Bug 46702] Illegal fragment fill size when using current address in size computation

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 14 17:57:06 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=46702

Jian Cai <caij2003 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
             Status|NEW                         |RESOLVED

--- Comment #2 from Jian Cai <caij2003 at gmail.com> ---
A slightly reduced test case:

$cat foo.s 
1:
   jmp .
2:
.fill 1, (2b - 1b), 0


Double checking again GNU assembler also seemed to fail such code:

$ as --version
GNU assembler (GNU Binutils for Debian) 2.35.2

$ as foo.s -o gas.o
foo.s: Assembler messages:
foo.s:4: Error: bad or irreducible absolute expression
make: *** [makefile:9: gas] Error 1


Closing it as this seems to be consistent across assemblers. Please feel free
to reopen if I misunderstood your problem.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210515/ca1072a7/attachment.html>


More information about the llvm-bugs mailing list