1. This forum section is a read-only archive which contains old newsgroup posts. If you wish to post a query, please do so in one of our main forum sections (here). This way you will get a faster, better response from the members on Motherboard Point.

sections got2 and fixup in linker script

Discussion in 'Embedded' started by Tom, Jun 1, 2004.

  1. Tom

    Tom Guest


    can anyone explain me where the sections .got2 and .fixup are used for in a
    linker script ? I can't seem to find information about it.


    Tom, Jun 1, 2004
    1. Advertisements

  2. got2 sounds like a Global Offset Table of some sort and fixup sounds like,
    well, like a fix up section. I'd guess these are used for PIC or PID,
    position independent code or data. Since this is *extremely* linker
    specific, why not tell us which linker and what the linker manual says
    about sections?
    Mark A. Odell, Jun 1, 2004
    1. Advertisements

  3. Tom

    Tom Guest

    I am using the gnu ld linker with a virtex II pro fpga. The documentation of
    the linker doesn't say anything on the different sections that can be

    I am using the embedded development kit from xilinx. It says that the
    sections .got2 and .fixup must be included otherwise it generates an error:

    3-4/../../../../powerpc-eabi/bin/ld: warning: no memory region specified for
    section `.got2'

    Tom, Jun 1, 2004
  4. Since it is Gnu ld it is well documented in the binutils docs. I'd start


    I'm afraid a few days of linker script learning are in your future.
    Mark A. Odell, Jun 1, 2004
  5. Tom

    Tom Guest

    Ok, but the problem is not the linker script. I just can't seem to find
    information on those got2 and fixup sections...

    Tom, Jun 2, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.