[PATCH] D29324: [ELF] - Allow to combine sections of type SHT_NOTE with different attributes.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 31 07:15:07 PST 2017


>>Can you confirm what gold and bfd do on this case? They force the non
>>allocatable section into being allocated?
>
>When I checked, bfd did that, right.
>
>I'll recheck again just to be sure.
>
>George.

So yes, both bfd and gold do that.

I checked with --build-id and non allocatable sections.
Output is something like:

Section Headers:
  [Nr] Name              Type             Address           Offset
       Size              EntSize          Flags  Link  Info  Align
  [ 0]                   NULL             0000000000000000  00000000
       0000000000000000  0000000000000000           0     0     0
  [ 1] .notes            NOTE             0000000000000000  00200000
       0000000000000034  0000000000000000   A       0     0     4
  [ 2] .shstrtab         STRTAB           0000000000000000  00200069
       0000000000000022  0000000000000000           0     0     1
  [ 3] .symtab           SYMTAB           0000000000000000  00200038
       0000000000000030  0000000000000018           4     2     8
  [ 4] .strtab           STRTAB           0000000000000000  00200068
       0000000000000001  0000000000000000           0     0     1

George.


More information about the llvm-commits mailing list