Bug 14640 - gas generates broken relocations for symbols with weak defs on microblaze
Summary: gas generates broken relocations for symbols with weak defs on microblaze
Status: NEW
Alias: None
Product: binutils
Classification: Unclassified
Component: gas (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-28 00:59 UTC by Rich Felker
Modified: 2012-09-28 00:59 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rich Felker 2012-09-28 00:59:07 UTC
See this thread for a description of the issue and a patch, which is in Xilinx's fork of binutils but does not seem to have made it upstream:

http://permalink.gmane.org/gmane.linux.uclinux.microblaze/11155

Basically, the issue is that gas thinks it can generate a 16-bit relative jump when there's a local definition of the function, even if that definition is weak and might be overridden by a strong definition that's outside of the 16-bit jump range. I'm in the process of porting musl libc to microblaze, and this issue is a show-stopper since we make heavy use of weak definitions.