Generating Map files

Brad Andrews bandrews at activepower.com
Wed Aug 5 20:56:46 UTC 2015


I have a question regarding map files.
My host is 64-bit fedora-linux and target is 32-bit powerpc-rtems4.11 (icecube bsp) Eclipse Luna CDT.
Passing flags -Wl,-Map,output file.map to linker generates a map file with 64-bit addresses.
See map file snippet below from ticker example.

Is there a way to force 32-bit ?

Memory Configuration

Name             Origin             Length             Attributes
RAM              0x0000000000000000 0x0000000007fff000
ROM              0x00000000ffe00000 0x0000000000200000
REGS             0x00000000f0000000 0x0000000000010000
DPRAM            0x0000000000000000 0x0000000000000000
UNEXPECTED_SECTIONS 0x00000000ffffffff 0x0000000000000000
*default*        0x0000000000000000 0xffffffffffffffff

Linker script and memory map

LOAD /home/darb/development/rtems/4.11/lib/gcc/powerpc-rtems4.11/4.9.2/m603e/ecrti.o
LOAD /home/darb/development/icecube/powerpc-rtems4.11/icecube/lib/rtems_crti.o
LOAD /home/darb/development/rtems/4.11/lib/gcc/powerpc-rtems4.11/4.9.2/m603e/crtbegin.o
LOAD /home/darb/development/icecube/powerpc-rtems4.11/icecube/lib/start.o
LOAD ./init.o
LOAD /home/darb/development/rtems/4.11/lib/gcc/powerpc-rtems4.11/4.9.2/m603e/libgcc.a
START GROUP
LOAD /home/darb/development/icecube/powerpc-rtems4.11/icecube/lib/librtemsbsp.a
LOAD /home/darb/development/icecube/powerpc-rtems4.11/icecube/lib/librtemscpu.a
LOAD /home/darb/development/rtems/4.11/lib/gcc/powerpc-rtems4.11/4.9.2/../../../../powerpc-rtems4.11/lib/m603e/libc.a
LOAD /home/darb/development/rtems/4.11/lib/gcc/powerpc-rtems4.11/4.9.2/m603e/libgcc.a
END GROUP
                0x0000000000000000                bsp_ram_start = ORIGIN (RAM)
                0x0000000007fff000                bsp_ram_end = (ORIGIN (RAM) + 0x7fff000)
                0x0000000007fff000                bsp_ram_size = 0x7fff000
                0x00000000ffe00000                bsp_rom_start = ORIGIN (ROM)
                0x0000000100000000                bsp_rom_end = (ORIGIN (ROM) + 0x200000)
                0x0000000000200000                bsp_rom_size = 0x200000
                0x0000000000000000                bsp_dpram_start = ORIGIN (DPRAM)
                0x0000000000000000                bsp_dpram_end = (ORIGIN (DPRAM) + 0x0)
                0x0000000000000000                bsp_dpram_size = 0x0
                0x0000000000000020                bsp_section_align = 0x20
                0x0000000000000000                RamBase = bsp_ram_start
                0x0000000007fff000                RamSize = bsp_ram_size
                0x0000000000000000                HeapSize = DEFINED (HeapSize)?HeapSize:0x0

.regs           0x00000000f0000000        0x0
                0x00000000f0000000                MBAR = .
                0x00000000f0000000                mpc5200 = .

.vectors        0x0000000000000100     0x1f00
 *(.vectors)
 .vectors       0x0000000000000100     0x1f00 /home/darb/development/icecube/powerpc-rtems4.11/icecube/lib/start.o

.text           0x0000000000010000    0x23dc0
                0x0000000000010000                bsp_section_text_start = .
 *(.entry)
 .entry         0x0000000000010000      0x458 /home/darb/development/icecube/powerpc-rtems4.11/icecube/lib/start.o
                0x0000000000010000                start
---------------------------------------------------------------------------------------
 This email has been scanned for email related threats and delivered safely by Mimecast.
 For more information please visit http://www.mimecast.com
---------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20150805/e0f67565/attachment.html>


More information about the users mailing list