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]

fix uninitialized values in Xtensa PIC code


I recently discovered that the md_apply_fix function in the Xtensa port of GAS has been failing to "apply" any value at all for XTENSA_PLT relocations, leading to uninitialized data in the output. This shows up clearly with valgrind but is apparently harmless in many cases, perhaps because the data is usually zero. It did cause one real failure for a program in the GCC testsuite. The patch changes the function to always set the value to something, with a default of zero. Tested and committed on the mainline.

2006-01-25 Bob Wilson <bob.wilson@acm.org>

* config/tc-xtensa.c (md_apply_fix): Set value to zero for PLT relocs.


Attachment: gas-plt-rel.diff
Description: Binary data


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