Changeset 1cbe577 in rtems


Ignore:
Timestamp:
Nov 5, 2020, 8:02:28 PM (3 months ago)
Author:
Kinsey Moore <kinsey.moore@…>
Branches:
master
Children:
aa1c6dd
Parents:
0c7bb0e
git-author:
Kinsey Moore <kinsey.moore@…> (11/05/20 20:02:28)
git-committer:
Joel Sherrill <joel@…> (11/23/20 15:57:45)
Message:

spec/aarch64: Only apply SUBALIGN(4) to ILP32

The SUBALIGN(4) required on rtemsroset and rtemsrwset for ILP32 builds
was previously present on LP64 builds and causes no issues within RTEMS,
but causes relocation/alignment issues when building libbsd. This
restricts those alignment changes to ILP32 builds.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bsps/aarch64/shared/start/linkcmds.base

    r0c7bb0e r1cbe577  
    4444bsp_stack_align = DEFINED (bsp_stack_align) ? bsp_stack_align : 16;
    4545
     46bsp_set_align = DEFINED (bsp_set_align) ? bsp_set_align : 8;
     47
    4648bsp_stack_exception_size = DEFINED (bsp_stack_exception_size) ? bsp_stack_exception_size : 0;
    4749bsp_stack_exception_size = ALIGN (bsp_stack_exception_size, bsp_stack_align);
     
    244246                *(.got.plt) *(.igot.plt) *(.got) *(.igot)
    245247        } > REGION_RODATA AT > REGION_RODATA_LOAD
    246         .rtemsroset : ALIGN_WITH_INPUT SUBALIGN(4) {
     248        .rtemsroset : ALIGN_WITH_INPUT SUBALIGN(bsp_set_align) {
    247249                /* Special FreeBSD linker set sections */
    248250                __start_set_sysctl_set = .;
     
    298300                *(.data1)
    299301        } > REGION_DATA AT > REGION_DATA_LOAD
    300         .rtemsrwset : ALIGN_WITH_INPUT SUBALIGN(4) {
     302        .rtemsrwset : ALIGN_WITH_INPUT SUBALIGN(bsp_set_align) {
    301303                KEEP (*(SORT(.rtemsrwset.*)))
    302304                bsp_section_data_end = .;
  • spec/build/bsps/aarch64/a53/linkcmds_ilp32.yml

    r0c7bb0e r1cbe577  
    6161  OUTPUT_FORMAT ("elf32-littleaarch64")
    6262  OUTPUT_ARCH (aarch64:ilp32)
     63  bsp_set_align = 4;
    6364
    6465  INCLUDE linkcmds.base
Note: See TracChangeset for help on using the changeset viewer.