public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] mips lds alignment bug
@ 2005-09-23 17:55 Geoff Cleary
  0 siblings, 0 replies; only message in thread
From: Geoff Cleary @ 2005-09-23 17:55 UTC (permalink / raw)
  To: u-boot

The following patch corrects a problem in (at least) the dbau1x0/u-boot.lds

The bug only shows if the GOT requires alignment onto 16 byte boundary. In
this case the _gp symbol is aligned, but the actual GOT section is not.


*** u-boot_fix/board/dbau1x00/u-boot.lds        2005-09-23
13:38:13.126887305 -0400
--- u-boot/board/dbau1x00/u-boot.lds    2005-09-23 13:38:32.392077670 -0400
***************
*** 46,53 ****
        . = ALIGN(4);
        .sdata  : { *(.sdata) }
  
!       . = ALIGN(16);
!       _gp = .;
  
        __got_start = .;
        .got  : { *(.got) }
--- 46,52 ----
        . = ALIGN(4);
        .sdata  : { *(.sdata) }
  
!       _gp = ALIGN(16);
  
        __got_start = .;
        .got  : { *(.got) }


Geoff

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-09-23 17:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-23 17:55 [U-Boot-Users] [PATCH] mips lds alignment bug Geoff Cleary

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox