bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/14448] AVR - BFD_RELOC_32 (4bytes) is written as 2 bytes


From: M.Cerveny at computer dot org
Subject: [Bug gas/14448] AVR - BFD_RELOC_32 (4bytes) is written as 2 bytes
Date: Fri, 17 Aug 2012 11:42:27 +0000

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

--- Comment #1 from M.Cerveny at computer dot org 2012-08-17 11:42:27 UTC ---
Created attachment 6585
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6585
testcase

Testcase:

1) generate large file:
# rm x.c; let i=1; let j=0; while [[ $i -le 2000 ]]; do echo "int fn${i}(int
i)\n{\nfn${j}(i+1);\nfn${j}(i+2);\nfn${j}(i+3);\nreturn i+4;\n}\n\n" >> x.c;
let
j=i; let i=i+1; done; echo "int fn0(int i) { return i; }; main() { fn${j}(0);
}" >> x.c

2) compille

# avr-gcc -o x -g -mmcu=atmega1281 x.c

3) test overflow

# avr-readelf -S x
# avr-objdump -Wl x > /dev/null
avr-objdump: Warning: The information in section .debug_line appears to be
corrupt - the section is too small
# avr-readelf -wl x > /dev/null
readelf: Warning: The information in section .debug_line appears to be corrupt
- the section is too small

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