source:
rtems/contrib/crossrpms/patches/binutils-2.18.92-rtems4.10-20081004.diff
@
1547cff6
Last change on this file since 1547cff6 was 1547cff6, checked in by Ralf Corsepius <ralf.corsepius@…>, on 10/04/08 at 04:58:19 | |
---|---|
|
|
File size: 8.5 KB |
-
binutils-2.18.92
diff -Naur binutils-2.18.92.orig/bfd/config.bfd binutils-2.18.92/bfd/config.bfd
old new 721 721 targ_defvec=bfd_elf32_iq2000_vec 722 722 ;; 723 723 724 m32c-*-elf )724 m32c-*-elf | m32c-*-rtems*) 725 725 targ_defvec=bfd_elf32_m32c_vec 726 726 ;; 727 727 -
gas/configure.tgt
diff -Naur binutils-2.18.92.orig/gas/configure.tgt binutils-2.18.92/gas/configure.tgt
old new 244 244 245 245 iq2000-*-elf) fmt=elf ;; 246 246 247 m32c-*-elf )fmt=elf ;;247 m32c-*-elf | m32c-*-rtems*) fmt=elf ;; 248 248 249 249 m32r-*-elf*) fmt=elf ;; 250 m32r-*-rtems*) fmt=elf ;; 250 251 m32r-*-linux*) fmt=elf em=linux;; 251 252 252 253 m68hc11-*-* | m6811-*-*) fmt=elf ;; -
ld/configure.tgt
diff -Naur binutils-2.18.92.orig/ld/configure.tgt binutils-2.18.92/ld/configure.tgt
old new 301 301 ;; 302 302 iq2000-*-elf) targ_emul=elf32iq2000 ; targ_extra_emuls="elf32iq10" 303 303 ;; 304 m32c-*-elf) targ_emul=elf32m32c 304 m32c-*-elf|m32c-*-rtems*) 305 targ_emul=elf32m32c 305 306 ;; 306 307 m32r*le-*-elf*) targ_emul=m32rlelf ;; 307 308 m32r*-*-elf*) targ_emul=m32relf ;; 309 m32r*-*-rtems*) targ_emul=m32relf ;; 308 310 m32r*le-*-linux-*) targ_emul=m32rlelf_linux ;; 309 311 m32r*-*-linux-*) targ_emul=m32relf_linux 310 312 ;; -
ld/testsuite/ChangeLog
diff -Naur binutils-2.18.92.orig/ld/testsuite/ChangeLog binutils-2.18.92/ld/testsuite/ChangeLog
old new 6 6 7 7 * ld-mips-elf/reloc-estimate-1.d: Make endian-neutral. 8 8 9 2008-09-20 Jan Kratochvil <jan.kratochvil@redhat.com> 10 11 Provide virtual target "cfi" for targets supporting CFI. 12 * ld-elf/eh-frame-hdr.d: Replace target and xfail statements by single 13 `target: cfi'. 14 * ld-elf/eh-group.exp: Call check_as_cfi instead of is_elf_format. 15 * ld-elf/eh-group1.s, elf/eh-group2.s: Use more compatible section 16 flags prefix '%'. 17 * ld-elf/eh5.d: Replace target statement by `target: cfi' with an Alpha 18 exception. Relax the `Code alignment factor' matching. 19 * lib/ld-lib.exp: Rename istarget as istarget_ld. 20 (istarget, check_as_cfi): New procedure. 21 (run_dump_test): New comment for the virtual target `cfi'. 22 9 23 2008-09-17 Jan Kratochvil <jan.kratochvil@redhat.com> 10 24 11 25 * ld-elf/eh-group.exp, ld-elf/eh-group1.s, ld-elf/eh-group2.s: New test. -
ld/testsuite/ld-elf/eh5.d
diff -Naur binutils-2.18.92.orig/ld/testsuite/ld-elf/eh5.d binutils-2.18.92/ld/testsuite/ld-elf/eh5.d
old new 3 3 #source: eh5b.s 4 4 #ld: 5 5 #readelf: -wf 6 #target: x86_64-*-* i?86-*-* 6 #target: cfi 7 #notarget: alpha* 7 8 8 9 The section .eh_frame contains: 9 10 10 11 00000000 0000001[04] 00000000 CIE 11 12 Version: 1 12 13 Augmentation: "zR" 13 Code alignment factor: 114 Code alignment factor: .* 14 15 Data alignment factor: .* 15 16 Return address column: .* 16 17 Augmentation data: 1b … … 29 30 000000(2c|30) 00000014 00000000 CIE 30 31 Version: 1 31 32 Augmentation: "zPR" 32 Code alignment factor: 133 Code alignment factor: .* 33 34 Data alignment factor: .* 34 35 Return address column: .* 35 36 Augmentation data: 03 .. .. .. .. 1b … … 53 54 0000007[48] 0000001[8c] 00000000 CIE 54 55 Version: 1 55 56 Augmentation: "zPLR" 56 Code alignment factor: 157 Code alignment factor: .* 57 58 Data alignment factor: .* 58 59 Return address column: .* 59 60 Augmentation data: 03 .. .. .. .. 0c 1b … … 74 75 000000b[08] 0000001[04] 00000000 CIE 75 76 Version: 1 76 77 Augmentation: "zR" 77 Code alignment factor: 178 Code alignment factor: .* 78 79 Data alignment factor: .* 79 80 Return address column: .* 80 81 Augmentation data: 1b … … 89 90 000000[de]8 00000014 00000000 CIE 90 91 Version: 1 91 92 Augmentation: "zPR" 92 Code alignment factor: 193 Code alignment factor: .* 93 94 Data alignment factor: .* 94 95 Return address column: .* 95 96 Augmentation data: 03 .. .. .. .. 1b … … 111 112 000001(1c|30) 0000001[8c] 00000000 CIE 112 113 Version: 1 113 114 Augmentation: "zPLR" 114 Code alignment factor: 1115 Code alignment factor: .* 115 116 Data alignment factor: .* 116 117 Return address column: .* 117 118 Augmentation data: 03 .. .. .. .. 0c 1b -
ld/testsuite/ld-elf/eh-frame-hdr.d
diff -Naur binutils-2.18.92.orig/ld/testsuite/ld-elf/eh-frame-hdr.d binutils-2.18.92/ld/testsuite/ld-elf/eh-frame-hdr.d
old new 1 1 #source: eh-frame-hdr.s 2 2 #ld: -e _start --eh-frame-hdr 3 3 #objdump: -hw 4 #target: alpha*-*-* 5 #target: arm*-*-* 6 #target: i?86-*-* 7 #target: m68k-*-* 8 #target: mips*-*-* 9 #target: powerpc*-*-* 10 #target: s390*-*-* 11 #target: sh*-*-* 12 #xfail: sh*l*-*-* 13 #target: sparc*-*-* 14 #target: x86_64-*-* 4 #target: cfi 15 5 #... 16 6 [0-9] .eh_frame_hdr 0*[12][048c] .* 17 7 #pass -
ld/testsuite/ld-elf/eh-group1.s
diff -Naur binutils-2.18.92.orig/ld/testsuite/ld-elf/eh-group1.s binutils-2.18.92/ld/testsuite/ld-elf/eh-group1.s
old new 1 .section sect, "axG", @progbits, sectgroup, comdat1 .section sect, "axG", %progbits, sectgroup, comdat 2 2 .global _start 3 3 _start: 4 4 .cfi_startproc -
ld/testsuite/ld-elf/eh-group2.s
diff -Naur binutils-2.18.92.orig/ld/testsuite/ld-elf/eh-group2.s binutils-2.18.92/ld/testsuite/ld-elf/eh-group2.s
old new 1 .section sect, "axG", @progbits, sectgroup, comdat1 .section sect, "axG", %progbits, sectgroup, comdat 2 2 .cfi_startproc 3 3 .skip 16 4 4 .cfi_endproc -
ld/testsuite/ld-elf/eh-group.exp
diff -Naur binutils-2.18.92.orig/ld/testsuite/ld-elf/eh-group.exp binutils-2.18.92/ld/testsuite/ld-elf/eh-group.exp
old new 29 29 # executable trying to create .eh_frame_hdr. It needs a separate .exp file due 30 30 # to the requirement of two `ld' runs. 31 31 32 # Exclude non- ELFtargets.32 # Exclude non-CFI (such as ia64) targets. 33 33 34 if ![is_elf_format]{34 if {![check_as_cfi]} { 35 35 return 36 36 } 37 37 -
ld/testsuite/lib/ld-lib.exp
diff -Naur binutils-2.18.92.orig/ld/testsuite/lib/ld-lib.exp binutils-2.18.92/ld/testsuite/lib/ld-lib.exp
old new 598 598 # 599 599 # target: TARGET 600 600 # Only run the test for TARGET. This may occur more than once; the 601 # target being tested must match at least one. 601 # target being tested must match at least one. You may provide target 602 # name "cfi" for any target supporting the CFI statements. 602 603 # 603 604 # notarget: TARGET 604 605 # Do not run the test for TARGET. This may occur more than once; … … 1569 1570 } 1570 1571 return $gc_sections_available_saved 1571 1572 } 1573 1574 # Check if the assembler supports CFI statements. 1575 1576 proc check_as_cfi { } { 1577 global check_as_cfi_result 1578 global as 1579 if [info exists check_as_cfi_result] { 1580 return $check_as_cfi_result 1581 } 1582 set as_file "tmpdir/check_as_cfi.s" 1583 set as_fh [open $as_file w 0666] 1584 puts $as_fh "# Generated file. DO NOT EDIT" 1585 puts $as_fh "\t.cfi_startproc" 1586 puts $as_fh "\t.cfi_endproc" 1587 close $as_fh 1588 remote_download host $as_file 1589 verbose -log "Checking CFI support:" 1590 rename "perror" "check_as_cfi_perror" 1591 proc perror { args } { } 1592 set success [ld_assemble $as $as_file "/dev/null"] 1593 rename "perror" "" 1594 rename "check_as_cfi_perror" "perror" 1595 #remote_file host delete $as_file 1596 set check_as_cfi_result $success 1597 return $success 1598 } 1599 1600 # Provide virtual target "cfi" for targets supporting CFI. 1601 1602 rename "istarget" "istarget_ld" 1603 proc istarget { target } { 1604 if {$target == "cfi"} { 1605 return [check_as_cfi] 1606 } 1607 return [istarget_ld $target] 1608 }
Note: See TracBrowser
for help on using the repository browser.