This happens on x86-linux in gas 2.14 and 2.16, and the bug
is still in the source code in the latest CVS version.
.file directives do not work unless they are emitted in numerical
order. For example, this fails:
.file 2 "/something_else"
.loc2 402 1
.file 1
--- Additional Comments From hjl at lucon dot org 2006-02-22 18:14 ---
This patch
http://sourceware.org/ml/binutils/2006-02/msg00295.html
should work much better.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=2338
--- You are receiving this mail because: ---
You are on
--- Additional Comments From KenJackson at ieee dot org 2006-02-22 14:52
---
I've simplified it by stripping away all gcc influence. This is purely
a binutils bug. I suspect it is ld's relocation that is causing the
problem. Or maybe it's the BFD library, if that's a separate entity.