This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Very interesting IA64 gas bug


On Thu, Jun 05, 2003 at 04:56:27PM -0700, H. J. Lu wrote:
> # gunzip hint.s.gz
> # gcc -c hint.s
> hint.s: Assembler messages:
> hint.s:32766: Error: Unknown opcode `hint@pause'
> 
> It seems that gas uses a buffer of size 0x8000. Things will go wrong
> when the input is bigger than 0x8000. I am working on it.
> 

This patch seems to cure the testcase. But I don't know if it is the
right fix nor it covers all cases where the end of the input buffer
is reached. The current code looks fragile to me.


H.J.

Attachment: gas-overflow.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]