Files
clang-p2996/lld/test/ELF
Fangrui Song 03051f7ac8 [ELF] Preserve section order within an INSERT AFTER command
For
```
SECTIONS {
  text.0 : {}
  text.1 : {}
  text.2 : {}
} INSERT AFTER .data;
```

the current order is `.data text.2 text.1 text.0`. It makes more sense to
preserve the specified order and thus improve compatibility with GNU ld.

For
```
SECTIONS { text.0 : {} } INSERT AFTER .data;
SECTIONS { text.3 : {} } INSERT AFTER .data;
```

GNU ld somehow collects sections with `INSERT AFTER .data` together (IMO
inconsistent) but I think it makes more sense to execute the commands in order
and get `.data text.3 text.0` instead.

Reviewed By: peter.smith

Differential Revision: https://reviews.llvm.org/D105158
2021-06-30 11:35:50 -07:00
..
2021-06-17 17:08:13 +07:00
2021-02-08 08:55:29 -08:00
2021-02-08 08:55:29 -08:00
2021-02-08 08:55:29 -08:00
2021-02-08 08:55:29 -08:00
2021-02-08 08:55:29 -08:00
2020-06-01 10:19:41 -07:00
2021-05-14 09:40:32 -07:00
2020-07-23 08:16:01 -07:00
2021-01-22 19:07:02 -08:00
2020-04-13 19:32:44 -05:00
2020-08-07 22:08:44 -07:00
2021-02-05 09:37:37 -08:00
2020-06-01 10:19:41 -07:00
2020-06-01 10:19:41 -07:00
2020-06-01 10:19:41 -07:00