X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=debian%2Fpatches%2F313_pr5025.dpatch;fp=debian%2Fpatches%2F313_pr5025.dpatch;h=12b6dcb189b8b840ce25240725ca5d03c02af724;hp=0000000000000000000000000000000000000000;hb=47f73751c91775676bb03af53e83c7f49dfda44f;hpb=6df9443a374e2b81278c61b8afc0a1eef7db280b diff --git a/debian/patches/313_pr5025.dpatch b/debian/patches/313_pr5025.dpatch new file mode 100755 index 0000000..12b6dcb --- /dev/null +++ b/debian/patches/313_pr5025.dpatch @@ -0,0 +1,55 @@ +#!/bin/sh -e +## 313_pr5025.dpatch +## +## DP: Description: Fix PR ld/5025 +## DP: Upstream status: CVS head 20070908 + +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch}" + +case "$1" in + -patch) patch $patch_opts -p1 < $0;; + -unpatch) patch $patch_opts -p1 -R < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + + PR ld/5025 + * emultempl/elf32.em (write_build_id_section): Correct test for + "missing" .note.gnu.build-id. Downgrade error to a warning if + it has been discarded. + +@DPATCH@ +Subject: Fix 5025, discarded .note.gnu.build-id + +Index: ld/emultempl/elf32.em +=================================================================== +RCS file: /cvs/src/src/ld/emultempl/elf32.em,v +retrieving revision 1.186 +diff -u -p -r1.186 elf32.em +--- ./ld/emultempl/elf32.em 17 Aug 2007 13:50:48 -0000 1.186 ++++ ./ld/emultempl/elf32.em 15 Sep 2007 03:39:19 -0000 +@@ -936,10 +936,11 @@ gld${EMULATION_NAME}_write_build_id_sect + Elf_External_Note *e_note; + + asec = info->sec; +- if (asec->output_section == NULL) ++ if (bfd_is_abs_section (asec->output_section)) + { +- einfo (_("%P: .note.gnu.build-id section missing")); +- return FALSE; ++ einfo (_("%P: warning: .note.gnu.build-id section discarded," ++ " --build-id ignored.\n")); ++ return TRUE; + } + i_shdr = &elf_section_data (asec->output_section)->this_hdr; + +