be laid out by their ordinal overrides first, there was a bug that two atoms may get the same override index due to which atoms were not ordered properly. This commit fixes the problem. Now the atoms are ordered by - Section Position hints - Atom override (Using layout-after/layout-before/in-group) - Content Permissions - Content Type - File Ordinal This also fixes the problem of running c++ static executables that was broken by an earlier patch. llvm-svn: 182494
10 lines
437 B
Plaintext
10 lines
437 B
Plaintext
|
|
RUN: lld -flavor gnu -target i386 -o %t1 %p/Inputs/rodata-test.i386 --noinhibit-exec
|
|
RUN: llvm-objdump -section-headers %t1 | FileCheck -check-prefix=i386 %s
|
|
RUN: lld -flavor gnu -target hexagon -o %t2 %p/Inputs/rodata-test.hexagon --noinhibit-exec
|
|
RUN: llvm-objdump -section-headers %t2 | FileCheck -check-prefix=hexagon %s
|
|
|
|
i386: .rodata 00000004 0000000000000114 DATA
|
|
|
|
hexagon: .rodata 00000004 0000000000000114 DATA
|