Bug 1099782 - __aeabi_* functions in thumb/libgcc.a contain non-thumb code
Summary: __aeabi_* functions in thumb/libgcc.a contain non-thumb code
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: arm-none-eabi-gcc-cs
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Hlavinka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-21 07:52 UTC by Jeremy Fitzhardinge
Modified: 2015-06-29 20:44 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-29 20:44:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jeremy Fitzhardinge 2014-05-21 07:52:56 UTC
Description of problem:
__aeabi_* functions in thumb/libgcc.a contain non-Thumb code

Version-Release number of selected component (if applicable):
arm-none-eabi-gcc-cs-2013.11.24-2.fc20.x86_64

How reproducible:
Always

Steps to Reproduce:
1.arm-none-eabi-objdump -d /usr/lib64/gcc/arm-none-eabi/4.8.1/thumb/libgcc.a|less

2. search for __aeabi_uidiv
3. Note all 32-bit instructions, rather than a mix of 16 and 32 expected for Thumb2 instructions.
4. "nm /usr/lib64/gcc/arm-none-eabi/4.8.1/thumb/libgcc.a" shows Thumb functions with odd addresses and ARM functions with even addresses.

Actual results:
Non-thumb code is executed as thumb code on a Cortex M3 (ARM 7M), which crashes.

Expected results:
Not crashing.

Additional info:
If I copy a libgcc from an Ubuntu arm-none-eabi-gcc package, I get a working executable.

This only seems to affect functions with the __aeabi_ prefix; __umodsi3 etc are proper Thumb instructions in the same library. There have been several threads about this:

https://gcc.gnu.org/ml/gcc-help/2012-12/msg00011.html

which points to: https://launchpad.net/gcc-arm-embedded as a guide for how to build the toolchain, specifically https://launchpad.net/gcc-arm-embedded/4.8/4.8-2014-q1-update/+download/How-to-build-toolchain.pdf

Comment 1 Fedora End Of Life 2015-05-29 11:54:50 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Fedora End Of Life 2015-06-29 20:44:57 UTC
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.