bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/797] Alignment in empty section changes the output layout


From: hjl at lucon dot org
Subject: [Bug ld/797] Alignment in empty section changes the output layout
Date: 9 Jun 2005 17:03:12 -0000

------- Additional Comments From hjl at lucon dot org  2005-06-09 17:03 -------
The way I looked at

  .text2 :
  {
    . = ALIGN(4096);
    *(.text2)
  }

it will align .text2 to 4096 byte. If .text2 doesn't exist, the
alignment shouldn't apply. Another one

  .text2 :
  {   
    *(.text2)
    . = ALIGN(4096);
  }

it pads .text2 to 4096 byte. If .text2 doesn't exist, it shouldn't be padded
to 4096 byte. I would argue that `.' is a special symbol, which shouldn't be
treated as the normal symbol when deciding if a section should be kept.

-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=797

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]