We need to order atoms that exist in the same chain. This is to make sure that the command line order is preserved when we emit the atoms to the output file. Credits: BigCheese for finding the bug. Adds a test which otherwise would fail. llvm-svn: 190608
17 lines
625 B
Plaintext
17 lines
625 B
Plaintext
RUN: lld -flavor gnu -target hexagon -o %t1 --noinhibit-exec \
|
|
RUN: %p/Inputs/quickdata-sortcommon-test.o.elf-hexagon
|
|
RUN: llvm-nm -n %t1 | FileCheck %s -check-prefix=quickdataSortCommon
|
|
|
|
quickdataSortCommon: 00002000 D AA1
|
|
quickdataSortCommon: 00002001 D A1
|
|
quickdataSortCommon: 00002002 D AAA1
|
|
quickdataSortCommon: 00002004 D BB1
|
|
quickdataSortCommon: 00002006 D B1
|
|
quickdataSortCommon: 00002008 D BBB1
|
|
quickdataSortCommon: 0000200c D CC1
|
|
quickdataSortCommon: 00002010 D C1
|
|
quickdataSortCommon: 00002014 D CCC1
|
|
quickdataSortCommon: 00002018 D DD1
|
|
quickdataSortCommon: 00002020 D D1
|
|
quickdataSortCommon: 00002028 D DDD1
|