This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH/cygwin: Don't pollute namespace with 'end' inld/scripttempl/pe.sc


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 ----




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]