Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 289747 Details for
Bug 387055
sys-devel/binutils fails to link udev on mips
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
all_binutils-ld-pr12845.patch (text/plain), 2.20 KB, created by
Matt Turner
on 2011-10-13 18:18:08 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Matt Turner
Created:
2011-10-13 18:18:08 UTC
Size:
2.20 KB
patch
obsolete
>Fixes a seg fault in ld when linking udev on mips. > >https://bugs.gentoo.org/show_bug.cgi?id=387055 >http://sourceware.org/bugzilla/show_bug.cgi?id=12845 >Reported by Aurelien Jarno. > >=================================================================== >RCS file: /cvs/src/src/bfd/elf.c,v >retrieving revision 1.538 >retrieving revision 1.539 >diff -u -r1.538 -r1.539 >--- src/bfd/elf.c 2011/05/23 05:41:00 1.538 >+++ src/bfd/elf.c 2011/06/09 10:36:20 1.539 >@@ -6272,6 +6272,8 @@ > || obfd->xvec->flavour != bfd_target_elf_flavour) > return TRUE; > >+ BFD_ASSERT (elf_section_data (osec) != NULL); >+ > /* For objcopy and relocatable link, don't copy the output ELF > section type from input if the output BFD section flags have been > set to something different. For a final link allow some flags >=================================================================== >RCS file: /cvs/src/src/bfd/elfxx-mips.c,v >retrieving revision 1.285 >retrieving revision 1.286 >diff -u -r1.285 -r1.286 >--- src/bfd/elfxx-mips.c 2011/06/03 10:11:06 1.285 >+++ src/bfd/elfxx-mips.c 2011/06/09 10:36:20 1.286 >@@ -1727,6 +1727,11 @@ > > if (mips_elf_local_pic_function_p (h)) > { >+ /* PR 12845: If H is in a section that has been garbage >+ collected it will have its output section set to *ABS*. */ >+ if (bfd_is_abs_section (h->root.root.u.def.section->output_section)) >+ return TRUE; >+ > /* H is a function that might need $25 to be valid on entry. > If we're creating a non-PIC relocatable object, mark H as > being PIC. If we're creating a non-relocatable object with >=================================================================== >RCS file: /cvs/src/src/ld/emultempl/mipself.em,v >retrieving revision 1.12 >retrieving revision 1.13 >diff -u -r1.12 -r1.13 >--- src/ld/emultempl/mipself.em 2010/02/04 09:16:43 1.12 >+++ src/ld/emultempl/mipself.em 2011/06/09 10:36:19 1.13 >@@ -138,6 +138,11 @@ > lang_output_section_statement_type *os; > struct hook_stub_info info; > >+ /* PR 12845: If the input section has been garbage collected it will >+ not have its output section set to *ABS*. */ >+ if (bfd_is_abs_section (output_section)) >+ return NULL; >+ > /* Create the stub file, if we haven't already. */ > if (stub_file == NULL) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 387055
: 289747