RFA: Un-bork arm-linux dynamic linking

Richard Earnshaw rearnsha@arm.com
Fri Jan 23 10:09:00 GMT 2004

> I am too fiddly for my own good.  When I fixed static linking for Richard
> last week, I snuck in a cleanup.  The cleanup turns out to be wrong.
> R_ARM_ABS32 relocs against a symbol shouldn't force creation of a PLT, but
> they -should- increment its PLT refcount; otherwise, if the symbol turns out
> to be a function, we'll forget to create the PLT slot, and crash.
> At least I got a new testcase.  OK?
> -- 
> Daniel Jacobowitz
> MontaVista Software                         Debian GNU/Linux Developer
> 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
> 	* elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
> 	change.
> 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
> 	* ld-arm/arm-app-abs32.s, ld-arm/arm-app-abs32.r,
> 	ld-arm/arm-app-abs32.d: New files.
> 	* ld-arm/arm-elf.exp: Add arm-app-abs32 testcase.

OK.  I assume this test does the right thing on an arm-elf cross (when 
there's no dynamic linker support).


More information about the Binutils mailing list