Skip to content

Conversation

dcpleung
Copy link
Member

@dcpleung dcpleung commented Oct 29, 2019

GNU Assembler, by default on non-Linux targets, treats slashes as
start of comments on i386.
(https://sourceware.org/binutils/docs-2.33.1/as/i386_002dChars.html#i386_002dChars)
In order to use division, --divide needs to be passed to
the assembler.

Fixes zephyrproject-rtos/sdk-ng#109

GNU Assembler, by default on non-Linux targets, treats slashes as
start of comments on i386.
(https://sourceware.org/binutils/docs-2.33.1/as/i386_002dChars.html#i386_002dChars)
In order to use division, `--divide` needs to be passed to
the assembler.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
@dcpleung dcpleung marked this pull request as ready for review October 29, 2019 23:31
@dcpleung dcpleung requested a review from galak October 29, 2019 23:31
@wentongwu wentongwu self-requested a review October 30, 2019 08:42
@andrewboie andrewboie merged commit 7308fdc into zephyrproject-rtos:master Oct 31, 2019
@dcpleung dcpleung deleted the x86_assembler_divide branch October 31, 2019 15:08
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.

bundled x86 assembler chokes on expressions involving division
5 participants