mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
2017-05-15 Eric Christopher <echristo@gmail.com>
* layout.cc (Layout::segment_precedes): Add a case for testing pointer equality when determining which segment precedes another.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2017-05-15 Eric Christopher <echristo@gmail.com>
|
||||||
|
|
||||||
|
* layout.cc (Layout::segment_precedes): Add a case for testing
|
||||||
|
pointer equality when determining which segment precedes
|
||||||
|
another.
|
||||||
|
|
||||||
2017-05-13 James Clarke <jrtc27@jrtc27.com>
|
2017-05-13 James Clarke <jrtc27@jrtc27.com>
|
||||||
|
|
||||||
PR gold/21444
|
PR gold/21444
|
||||||
|
@ -3300,6 +3300,11 @@ bool
|
|||||||
Layout::segment_precedes(const Output_segment* seg1,
|
Layout::segment_precedes(const Output_segment* seg1,
|
||||||
const Output_segment* seg2)
|
const Output_segment* seg2)
|
||||||
{
|
{
|
||||||
|
// In order to produce a stable ordering if we're called with the same pointer
|
||||||
|
// return false.
|
||||||
|
if (seg1 == seg2)
|
||||||
|
return false;
|
||||||
|
|
||||||
elfcpp::Elf_Word type1 = seg1->type();
|
elfcpp::Elf_Word type1 = seg1->type();
|
||||||
elfcpp::Elf_Word type2 = seg2->type();
|
elfcpp::Elf_Word type2 = seg2->type();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user