pkgsrc/cross/i386-netbsdpe/patches/binutils-ad
kent cbeea2b88c Sync with PEACE repositry.
- Apply stack-protection patch.
 - Upgrade binutils: 2.9.1 -> 2.11.2.
   This package does not use cross-binutils-2.9.1
2001-10-21 12:24:15 +00:00

20 lines
755 B
Text

$NetBSD: binutils-ad,v 1.1 2001/10/21 12:24:16 kent Exp $
--- bfd/cofflink.c.orig Thu Jun 7 12:08:24 2001
+++ bfd/cofflink.c
@@ -708,6 +708,15 @@
long_section_names = false;
for (o = abfd->sections; o != NULL; o = o->next)
{
+#if 0
+ fprintf(stderr, "_bfd_coff_final_link: %s%s%s%s%s\n", o->name
+ o->flags & SEC_CODE ? " SEC_CODE" : "",
+ o->flags & SEC_DATA ? " SEC_DATA" : "",
+ o->flags & SEC_ALLOC ? " SEC_ALLOC" : "",
+ o->flags & SEC_READONLY ? " SEC_READONLY" : "");
+#endif
+ if (o->flags & SEC_CODE && o->flags & SEC_DATA)
+ o->flags &= ~SEC_DATA;
o->reloc_count = 0;
o->lineno_count = 0;
for (p = o->link_order_head; p != NULL; p = p->next)