[RTEMS Project] #4266: motorola_powerpc bootloader images not linking correctly

RTEMS trac trac at rtems.org
Fri Feb 26 19:04:37 UTC 2021


#4266: motorola_powerpc bootloader images not linking correctly
-------------------------+--------------------------
 Reporter:  Chris Johns  |       Owner:  Chris Johns
     Type:  defect       |      Status:  reopened
 Priority:  normal       |   Milestone:  5.2
Component:  bsps         |     Version:  5
 Severity:  normal       |  Resolution:
 Keywords:               |  Blocked By:
 Blocking:               |
-------------------------+--------------------------

Comment (by Chris Johns):

 Comparing the `zlib.o` ELF sections for RTEMS 5 and 6 the `.bss` size is
 almost `0`:
 {{{
 Section Headers:
   [Nr] Name              Type            Addr     Off    Size   ES Flg Lk
 Inf Al
   [ 0]                   NULL            00000000 000000 000000 00      0
 0  0
   [ 1] .text             PROGBITS        00000000 000034 003cb8 00  AX  0
 0  4
   [ 2] .rela.text        RELA            00000000 004890 000444 0c   I 16
 1  4
   [ 3] .data             PROGBITS        00000000 003cec 00027c 00  WA  0
 0  4
   [ 4] .bss              NOBITS          00000000 003f68 000008 00  WA  0
 0  4
 }}}
 and `zlib` has a set of tables it generates. The RTEMS 6 or gcc-10 ELF
 sections are:
 {{{
 Section Headers:
   [Nr] Name              Type            Addr     Off    Size   ES Flg Lk
 Inf Al
   [ 0]                   NULL            00000000 000000 000000 00      0
 0  0
   [ 1] .text             PROGBITS        00000000 000034 003c7c 00  AX  0
 0  4
   [ 2] .rela.text        RELA            00000000 005014 000444 0c   I 18
 1  4
   [ 3] .data             PROGBITS        00000000 003cb0 00027c 00  WA  0
 0  4
   [ 4] .bss              NOBITS          00000000 003f2c 0010a8 00  WA  0
 0  4
 }}}
 An inspection of the generated assember shows the data being allocated
 using the `.comm` directory placing the data in the `common` section.
 Adding `-f-no-common` to the building of the bootloader has it working.

--
Ticket URL: <http://devel.rtems.org/ticket/4266#comment:4>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list