http://sourceware.org/bugzilla/show_bug.cgi?id=14600
Bug #: 14600 Summary: Thumb: constant expression expected while expression is statically calculable Product: binutils Version: 2.24 (HEAD) Status: NEW Severity: minor Priority: P2 Component: gas AssignedTo: unassig...@sourceware.org ReportedBy: binutils-b...@qult.net Classification: Unclassified The following .Lstart: ldr r4, =0 .Lend: ldr r4, =.Lend - .Lstart fails with Error: constant expression expected -- `ldr r4,=.Lend-.Lstart' I suppose that when parsing the local labels, the addresses aren't resolved, but still, they should be resolved when parsing the expression '.Lend - .Lstart'. If I use an intermediate local symbol, .Lstart: ldr r4, =0 .Lend: .Ldiff = .Lend - .Lstart ldr r4, =.Ldiff it works as expected. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils