Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix alignment of execute region to 8byte boundary #8024

Merged
merged 13 commits into from
Oct 10, 2018

Conversation

deepikabhavnani
Copy link

Description

Resolves: #8004

Pull request type

[X] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Breaking change

@0xc0170
Copy link
Contributor

0xc0170 commented Sep 24, 2018

Why was #8186 created separately ? Not part of this update?

@0xc0170
Copy link
Contributor

0xc0170 commented Sep 24, 2018

One question, all device should have this alignment for the upcoming release so we should coordinate it all works and its updated (thus my above question about nxp one).

@0xc0170 0xc0170 requested a review from a team September 24, 2018 12:22
@deepikabhavnani
Copy link
Author

@0xc0170 - Targets having more then 25 linker files were added into new PR so that respective teams can review. We have separate PR for NXP/Freescale #8186 and ST #8013.

I can merge all of them, but thought instead of 200+ file updates in single PR it is good to have target specific and again I didn't wanted to add PR per target also :-)

@0xc0170
Copy link
Contributor

0xc0170 commented Sep 24, 2018

OK, I was not certain as they were not linked and I discovered all of them going through PRs. Let's review all of them and make sure all targets the same release.

@deepikabhavnani
Copy link
Author

All of them are linked to issue #8004 and not each other.

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 1, 2018

Adding affected team (This is fixing the ARM legacy alignment issue #8004): Please review

@ARMmbed/team-silabs @ARMmbed/team-nuvoton @ARMmbed/team-toshiba @ARMmbed/team-maximintegrated @ARMmbed/team-renesas @ARMmbed/team-analogdevices @ARMmbed/team-onsemi @ARMmbed/team-realtek @ARMmbed/team-ublox

Copy link
Contributor

@c1728p9 c1728p9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to changing the '.sct' files to fix ARMC6 alignment it looks like the '.ld' and '.icf' files were also updated. Was this causing a problem or is this just for consistency?

@deepikabhavnani
Copy link
Author

deepikabhavnani commented Oct 3, 2018

In addition to changing the '.sct' files to fix ARMC6 alignment it looks like the '.ld' and '.icf' files were also updated. Was this causing a problem or is this just for consistency?

just for consistency :-( . IAR files were actually mostly 8-byte aligned for all sections, except vectors

@deepikabhavnani
Copy link
Author

Rebased to resolve conflicts

@cmonr
Copy link
Contributor

cmonr commented Oct 9, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Oct 9, 2018

Build : FAILURE

Build number : 3290
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/8024/

@cmonr
Copy link
Contributor

cmonr commented Oct 9, 2018

It's not the easiest thing to tell from the log, but there's a syntax error with the EFM32PG12_STK3402 target when compiling with GCC, on line 7.

--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
Deepika added 12 commits October 9, 2018 10:15
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
--legacyalign, --no_legacyalign are deprecated from ARMC6 compiler, in order to
remove deprecated flags all linker files (GCC and IAR as well to have uniformity)
should strictly align to 8-byte boundary
@deepikabhavnani
Copy link
Author

It's not the easiest thing to tell from the log, but there's a syntax error with the EFM32PG12_STK3402 target when compiling with GCC, on line 7.

Missed semicolon in linker file.. Will amend the commit, hence listing here the change

-__vector_size = 0x110
+__vector_size = 0x110;

@cmonr
Copy link
Contributor

cmonr commented Oct 9, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Oct 9, 2018

Build : SUCCESS

Build number : 3297
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/8024/

Triggering tests

/morph test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Oct 9, 2018

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 9, 2018

/morph export-build

@mbed-ci
Copy link

mbed-ci commented Oct 9, 2018

@mbed-ci
Copy link

mbed-ci commented Oct 10, 2018

@cmonr cmonr merged commit ab064df into ARMmbed:master Oct 10, 2018
@deepikabhavnani deepikabhavnani deleted the fix_align branch October 10, 2018 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants