1. 12 12月, 2006 2 次提交
    • R
      b228f4c5
    • R
      [MIPS] Discard .exit.text and .exit.data at runtime. · 2efac77e
      Ralf Baechle 提交于
      While the recent cset 86384d54 did improve
      things it didn't resolve all the problems.  So bite the bullet and discard
      .exit.text and .exit.data at runtime.  Which of course sucks because it
      bloats binaries with code that will never ever be used but it's the only
      thing that will work reliable as demonstrated by the function sd_major() in
      drivers/scsi/sd.c.
      
      Gcc may compile sd_major() using a jump table which it will put into
      .rodata.  If it also inlines sd_major's function body into exit_sd() which
      gcc > 3.4.x does.  If CONFIG_BLK_DEV_SD has been set to y we would like ld
      to discard exit_sd's code at link time.  However sd_major happens to
      contain a switch statement which gcc will compile using a jump table in
      .rodata on the architectures I checked.  So, when ld later discards
      .exit.text only the jump table in .rodata with its stale references to
      the discard .exit.text will be left which any no antique ld will honor
      with a link error.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      2efac77e
  2. 11 12月, 2006 6 次提交
  3. 09 12月, 2006 11 次提交
  4. 08 12月, 2006 5 次提交
  5. 07 12月, 2006 5 次提交
  6. 06 12月, 2006 1 次提交
  7. 05 12月, 2006 5 次提交
  8. 03 12月, 2006 1 次提交
  9. 30 11月, 2006 4 次提交