This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH/cygwin: Don't pollute namespace with 'end' inld/scripttempl/pe.sc
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: binutils <binutils at sources dot redhat dot com>
- Date: Sun, 02 Mar 2003 10:55:28 +0000
- Subject: PATCH/cygwin: Don't pollute namespace with 'end' inld/scripttempl/pe.sc
- Reply-to: Danny Smith <dannysmith at users dot sourceforge dot net>
Hello
The following fixes PR 5563 in the GCC GNATS database:
[Cygwin] using a pointer named "end" consistently produces segfault in
windows.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=g
cc&pr=5563
Danny
ld/ChangeLog
2003-03-02 Danny Smith <dannysmith at users dot sourceforge dot net>
* scripttempl/pe.sc (.endjunk): Use uglified name __end__ only.
Index: src/ld/scripttempl/pe.sc
===================================================================
RCS file: /cvs/src/src/ld/scripttempl/pe.sc,v
retrieving revision 1.7
diff -c -3 -p -r1.7 pe.sc
*** src/ld/scripttempl/pe.sc 23 Oct 2002 11:21:27 -0000 1.7
--- src/ld/scripttempl/pe.sc 2 Mar 2003 10:27:23 -0000
*************** SECTIONS
*** 132,139 ****
.endjunk ${RELOCATING+BLOCK(__section_alignment__)} :
{
/* end is deprecated, don't use it */
- ${RELOCATING+ end = .;}
- ${RELOCATING+ _end = .;}
${RELOCATING+ __end__ = .;}
}
--- 132,137 ----