This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[GAS, ARM] Allow relaxation of all non-preemptible symbols


Gas is currently being over conservative about which symbols in Thumb2 can be relaxed into shorter branches. In practice it is only unsafe to relax a symbol which can be pre-empted. That means the symbols must be global and (in the case of ELF) have default visibility.

This patch introduces a new support function symbol_preemptible and then uses it in relax_branch to determine when relaxation is safe.

Tested on bare-metal and linux hosts.  Installed on trunk.

R.

2013-06-18  Richard Earnshaw  <rearnsha@arm.com>

	* config/tc-arm.c (symbol_preemptible): New function.
	(relax_branch): Use it.

Attachment: gas.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]