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