[Bug ld/2657] New: Incorrect assumption on the CIE/FDE alignment

2006-05-12 Thread hjl at lucon dot org
This patch http://sourceware.org/ml/binutils/2004-11/msg00226.html introduced size_of_output_cie_fde to compute the size of CIE/FDE: size_of_output_cie_fde (struct eh_cie_fde *entry, unsigned int alignment) offset += size_of_output_cie_fde (ent, ptr_size); new_size = size_of_output

[Bug ld/2657] Incorrect assumption on the CIE/FDE alignment

2006-05-12 Thread hjl at lucon dot org
--- Additional Comments From hjl at lucon dot org 2006-05-12 16:57 --- Created an attachment (id=1020) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1020&action=view) An example Here is an example: [EMAIL PROTECTED] eh-2]$ readelf -wf sysdep.o The section .eh_frame contains: 0

[Bug ld/2657] Incorrect assumption on the CIE/FDE alignment

2006-05-12 Thread hjl at lucon dot org
--- Additional Comments From hjl at lucon dot org 2006-05-12 16:58 --- Created an attachment (id=1021) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1021&action=view) A testcase On x86-64, I got [EMAIL PROTECTED] eh-4]$ make ./as -o x.o x.s ./as -o crtend.o crtend.s ./ld -o

[Bug ld/2657] Incorrect assumption on the CIE/FDE alignment

2006-05-12 Thread hjl at lucon dot org
--- Additional Comments From hjl at lucon dot org 2006-05-12 17:20 --- But in gcc/unwind-dw2-fde.h /* The first few fields of a CIE. The CIE_id field is 0 for a CIE, to distinguish it from a valid FDE. FDEs are aligned to an addressing unit boundary, but the fields within are una

[Bug ld/2657] Improperly shrink CIE/FDE record

2006-05-12 Thread hjl at lucon dot org
--- Additional Comments From hjl at lucon dot org 2006-05-12 20:31 --- This part of the change is wrong: + /* Install the new size, filling the extra bytes with DW_CFA_nops. */ + if (new_size != ent->size) + { + memset (end, 0, new_size - ent->size); + bf

[Bug ld/2655] Incorrrect padding for .eh_frame section

2006-05-12 Thread hjl at lucon dot org
--- Additional Comments From hjl at lucon dot org 2006-05-12 21:01 --- The gcc bug is http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27576 -- http://sourceware.org/bugzilla/show_bug.cgi?id=2655 --- You are receiving this mail because: --- You are on the CC list for the bug, or