public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Geoff Cleary <gcleary@automatedthreatdetection.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] mips lds alignment bug
Date: Fri, 23 Sep 2005 13:55:17 -0400	[thread overview]
Message-ID: <E1EIrkX-0003jj-9q@mail.sourceforge.net> (raw)

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

                 reply	other threads:[~2005-09-23 17:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1EIrkX-0003jj-9q@mail.sourceforge.net \
    --to=gcleary@automatedthreatdetection.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox