Re: PATCH: fix incorrect PC-relative relocations with '.word'

2008-11-14 Thread Nick Clifton
Hi Mat, emit_expr, used by '.word' and others, grabs dot_value for the current frag, does some processing, and later calls frag_more. Unfortunately, the frag_more call can realize the frag is not big enough and switch to a new frag. That's bad because the dot_value already recorded an offset i

Re: PATCH: fix incorrect PC-relative relocations with '.word'

2008-11-14 Thread Nick Clifton
Hi Mat, My fix is simply to reserve enough space before calling frag_now_fix that the frag won't run out of room if frag_more is called later. Thanks for providing a fix for the problem. I have checked it in along with this changelog entry. Cheers Nick gas/ChangeLog 2008-11-14 Mat Host

PATCH: fix incorrect PC-relative relocations with '.word'

2008-11-11 Thread Mat Hostetter
This is for gas 2.18, but it looks like the same bug is present in 2.19. emit_expr, used by '.word' and others, grabs dot_value for the current frag, does some processing, and later calls frag_more. Unfortunately, the frag_more call can realize the frag is not big enough and switch to a new frag.