[patch] Thumb entry points

Paul Brook paul@codesourcery.com
Sat Feb 4 03:05:00 GMT 2006


The attached patch makes the Arm linker set the low bit of the entry point 
address when the symbol is a Thumb function.

Tested with cross to arm-none-eabi
Ok?

Paul

2006-02-04  Paul Brook  <paul@codesourcery.com>

ld/
	* emultempl/armelf.em: Include elf/arm.h.
	(arm_elf_finish): Set low address bit if enty point is a Thumb
	function.
ld/testsuite/
	* ld-arm/arm-elf.exp: Add thumb-entry test.
	* ld-arm/thumb-entry.d: New test.
	* ld-arm/thumb-entry.s: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.ld_thumb_entry
Type: text/x-diff
Size: 3219 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20060204/54a9924f/attachment.bin>


More information about the Binutils mailing list