https://sourceware.org/bugzilla/show_bug.cgi?id=32264

--- Comment #1 from LIU Hao <lh_mouse at 126 dot com> ---
The special case in LLD is here:
(https://github.com/llvm/llvm-project/blob/ebeb56af5f8f1ff9da8f5a7e98348f460d223de1/lld/COFF/Writer.cpp#L1113-L1123)

```c++
    if (name == ".CRT") {
      // In link.exe, there is a special case for the I386 target where .CRT
      // sections are treated as if they have output characteristics DATA | R
if
      // their characteristics are DATA | R | W. This implements the same
      // special case for all architectures.
      outChars = data | r;

      log("Processing section " + pSec->name + " -> " + name);

      sortCRTSectionChunks(pSec->chunks);
    }
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to