Don't sort sections in -r links.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 11 Nov 2016 22:43:27 +0000 (22:43 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 11 Nov 2016 22:43:27 +0000 (22:43 +0000)
commit1960bcd710cbe30b8011b9dd83ca389bbdab0e5f
tree29db1f305dbe91a927cd6c1d11270ede28fa84e1
parentbe15addffeb1b510f76e130fc2ec07ff1ef06f35
Don't sort sections in -r links.

Unlike gold, bfd, gas or MC we were putting exidx sections first since
they are ro.

The spec doesn't explicitly say that they must come after, but it is
definitely more convenient for the consumer, matches other producers
and matches other areas in ELF (like SHT_GROUP) where sections are
ordered in a natural way.

llvm-svn: 286659
lld/ELF/Writer.cpp
lld/test/ELF/arm-exidx-relocatable.s
lld/test/ELF/arm-use-r-output.s [new file with mode: 0644]
lld/test/ELF/relocatable-sections.s
lld/test/ELF/relocatable.s