fde alignment

Andreas Jaeger aj@suse.de
Sun Mar 7 12:05:00 GMT 2004


Andreas Jaeger <aj@suse.de> writes:

> [...]
> i386:
> Running /usr/src/packages/BUILD/binutils-2.15.90.0.1.1/gas/testsuite/gas/cfi/cfi
> .exp ...
> FAIL: CFI on i386
> FAIL: CFI common 2

The first is fixed with the appended patch, the second error is:
 ../as-new   -o dump.o /usr/src/packages/BUILD/binutils-2.15.90.0.1.1/gas/testsuite/gas/cfi/cfi-common-2.s
/usr/src/packages/BUILD/binutils-2.15.90.0.1.1/build-dir/gas/testsuite/../../binutils/readelf  -wf dump.o > dump.out
extra regexps in /usr/src/packages/BUILD/binutils-2.15.90.0.1.1/gas/testsuite/gas/cfi/cfi-common-2.d starting with "^00000014 0
0000020 00000018 FDE cie=00000000 pc=.*$"
EOF from dump.out
FAIL: CFI common 2

dump.out is:
# cat dump.out 
The section .eh_frame contains:

00000000 00000010 00000000 CIE
  Version:               1
  Augmentation:          "zR"
  Code alignment factor: 1
  Data alignment factor: -4
  Return address column: 8
  Augmentation data:     1b

  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop

00000014 0000001c 00000018 FDE cie=00000000 pc=0000001c..00000030
  DW_CFA_advance_loc: 4 to 00000020
  DW_CFA_def_cfa: r0 ofs 16
  DW_CFA_advance_loc: 4 to 00000024
  DW_CFA_remember_state
  DW_CFA_advance_loc: 4 to 00000028
  DW_CFA_def_cfa_offset: 0
  DW_CFA_advance_loc: 4 to 0000002c
  DW_CFA_restore_state
  DW_CFA_advance_loc: 4 to 00000030
  DW_CFA_def_cfa_offset: 0
  DW_CFA_nop

RTH, can you fix this one, please?

Ok to commit the appended patch?

Andreas

2004-03-07  Andreas Jaeger  <aj@suse.de>

	* gas/cfi/cfi-i386.d: Adjust offsets.

============================================================
Index: gas/testsuite/gas/cfi/cfi-i386.d
--- gas/testsuite/gas/cfi/cfi-i386.d	18 Jun 2003 17:58:48 -0000	1.4
+++ gas/testsuite/gas/cfi/cfi-i386.d	7 Mar 2004 12:02:39 -0000
@@ -2,7 +2,7 @@
 #name: CFI on i386
 The section .eh_frame contains:
 
-00000000 00000012 00000000 CIE
+00000000 00000014 00000000 CIE
   Version:               1
   Augmentation:          "zR"
   Code alignment factor: 1
@@ -12,29 +12,37 @@ The section .eh_frame contains:
 
   DW_CFA_def_cfa: r4 ofs 4
   DW_CFA_offset: r8 at cfa-4
+  DW_CFA_nop
+  DW_CFA_nop
 
-00000016 00000014 0000001a FDE cie=00000000 pc=0000001e..00000030
-  DW_CFA_advance_loc: 6 to 00000024
+00000018 00000014 0000001c FDE cie=00000000 pc=00000020..00000032
+  DW_CFA_advance_loc: 6 to 00000026
   DW_CFA_def_cfa_offset: 4664
-  DW_CFA_advance_loc: 11 to 0000002f
+  DW_CFA_advance_loc: 11 to 00000031
   DW_CFA_def_cfa_offset: 4
 
-0000002e 00000018 00000032 FDE cie=00000000 pc=00000048..00000055
-  DW_CFA_advance_loc: 1 to 00000049
+00000030 00000018 00000034 FDE cie=00000000 pc=0000004a..00000057
+  DW_CFA_advance_loc: 1 to 0000004b
   DW_CFA_def_cfa_offset: 8
   DW_CFA_offset: r5 at cfa-8
-  DW_CFA_advance_loc: 2 to 0000004b
+  DW_CFA_advance_loc: 2 to 0000004d
   DW_CFA_def_cfa_reg: r5
-  DW_CFA_advance_loc: 9 to 00000054
+  DW_CFA_advance_loc: 9 to 00000056
   DW_CFA_def_cfa_reg: r4
 
-0000004a 00000014 0000004e FDE cie=00000000 pc=00000071..00000081
-  DW_CFA_advance_loc: 2 to 00000073
+0000004c 00000014 00000050 FDE cie=00000000 pc=00000073..00000083
+  DW_CFA_advance_loc: 2 to 00000075
   DW_CFA_def_cfa_reg: r3
-  DW_CFA_advance_loc: 13 to 00000080
+  DW_CFA_advance_loc: 13 to 00000082
   DW_CFA_def_cfa: r4 ofs 4
 
-00000062 0000000d 00000066 FDE cie=00000000 pc=00000099..0000009f
-
-00000073 0000000d 00000077 FDE cie=00000000 pc=000000b0..000000bf
+00000064 00000010 00000068 FDE cie=00000000 pc=0000009b..000000a1
+  DW_CFA_nop
+  DW_CFA_nop
+  DW_CFA_nop
+
+00000078 00000010 0000007c FDE cie=00000000 pc=000000b5..000000c4
+  DW_CFA_nop
+  DW_CFA_nop
+  DW_CFA_nop
 

-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20040307/30995e67/attachment.sig>


More information about the Binutils mailing list