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

--- Comment #12 from Martin Liska <mliska at suse dot cz> ---
(In reply to Martin Liska from comment #11)
> (In reply to Mark Wielaard from comment #9)
> > So the real difference is that with the Fedora the .note.gnu.property has
> > alignment 4 and so it gets merged with the other (allocated) note sections.
> > But the opensuse version .note.gnu.property has alignment 8 and ends up in
> > its own phdr NOTE segment.
> 
> I see. Is it the linker of the assembler which decides the note alignment?

Apparently, the assembler:

echo '' | as --64 -o empty.o && readelf -SW empty.o
There are 6 section headers, starting at offset 0xa0:

Section Headers:
  [Nr] Name              Type            Address          Off    Size   ES Flg
Lk Inf Al
  [ 0]                   NULL            0000000000000000 000000 000000 00     
0   0  0
  [ 1] .text             PROGBITS        0000000000000000 000040 000000 00  AX 
0   0  1
  [ 2] .data             PROGBITS        0000000000000000 000040 000000 00  WA 
0   0  1
  [ 3] .bss              NOBITS          0000000000000000 000040 000000 00  WA 
0   0  1
  [ 4] .note.gnu.property NOTE            0000000000000000 000040 000030 00   A
 0   0  8
  [ 5] .shstrtab         STRTAB          0000000000000000 000070 00002f 00     
0   0  1
Key to Flags:
  W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
  L (link order), O (extra OS processing required), G (group), T (TLS),
  C (compressed), x (unknown), o (OS specific), E (exclude),
  D (mbind), l (large), p (processor specific)

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

Reply via email to