bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/13288] gold silently accepts truncated ELF input


From: ccoutant at google dot com
Subject: [Bug gold/13288] gold silently accepts truncated ELF input
Date: Wed, 12 Oct 2011 22:11:42 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=13288

--- Comment #1 from Cary Coutant <ccoutant at google dot com> 2011-10-12 
22:11:42 UTC ---
With --map-whole-files, gold doesn't bother to check that the requested view is
wholly contained within the file. With --no-map-whole-files, we get the
expected error:

$ ./ld-new --no-map-whole-files -r foo-truncated.o 
./ld-new: fatal error: foo-truncated.o: attempt to map 24 bytes at offset 1192
exceeds size of file; the file may be corrupt

-- 
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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]