Don't compare symbol addresses directly
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 22 Jul 2015 10:36:42 +0000 (03:36 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 22 Jul 2015 10:38:00 +0000 (03:38 -0700)
commit5b2af7dd40a4f3b570aef71daf11b9dfce9a5d13
tree25a322e842cdfc5f7d584f7cd57af5fa81d53204
parentcd78ea777c35c497fcc0f20d162789296dc0a44d
Don't compare symbol addresses directly

GCC 5 will fold symbol address comparison, assuming each symbol has a
different address, which leads to abort.  We should use separate
functions to compare symbol address.

PR gold/18663
* testsuite/Makefile.am (script_test_1_SOURCES): Set to
script_test_1a.cc script_test_1b.cc.
(script_test_11_r.o): Replace script_test_11.o with
script_test_11a.o script_test_11b.o.
(script_test_11.o): Removed.
(script_test_11a.o): New.
(script_test_11b.o): Likewise.
* testsuite/Makefile.in: Regenerated.
* testsuite/script_test_1.h: New file.
* testsuite/script_test_1b.cc: Likewise.
* testsuite/script_test_11.h: Likewise.
* testsuite/script_test_11b.c: Likewise.
* testsuite/script_test_1.cc: Renamed to ...
* testsuite/script_test_1a.cc: This.
Include "script_test_1.h".
(main): Call check_int and check_ptr.
* testsuite/script_test_11.c: Renamed to ...
* testsuite/script_test_11a.c: This.
Include "script_test_11.h".
(main): Call ptr_equal.
gold/ChangeLog
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in
gold/testsuite/script_test_1.cc [deleted file]
gold/testsuite/script_test_1.h [new file with mode: 0644]
gold/testsuite/script_test_11.c [deleted file]
gold/testsuite/script_test_11.h [new file with mode: 0644]
gold/testsuite/script_test_11a.c [new file with mode: 0644]
gold/testsuite/script_test_11b.c [new file with mode: 0644]
gold/testsuite/script_test_1a.cc [new file with mode: 0644]
gold/testsuite/script_test_1b.cc [new file with mode: 0644]
This page took 0.025387 seconds and 4 git commands to generate.