Two small fixes for s/390.
Martin Schwidefsky
schwidefsky@de.ibm.com
Wed Dec 19 11:11:00 GMT 2001
Hi,
two things have shown up in the s390 backend. The first is a cleanup
in the elf_machine_rela functions. Jakub Jelinek made me aware of
unnecessary code for the R_390_32 relocation in the 31 bit dl-machine
definitions, the special handling for the rtld bootstrap can be
removed. Further some relocation types are missing: R_390_16, R_390_8,
R_390_PC16DBL, R_390_PLT16DBL and R_390_PC16 for 31 bit and
R_390_NONE for 64 bit. They are currently not needed but might be
needed someday.
The second is a problem with profiling on 31 bit. The program counter
that is read with GET_PC can have the high order bit (2^31) set which
naturally confuses profile_count.
2001-12-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
* sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Remove
unnecessary code and add missing reloc types.
* sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Add empty
case for reloc type R_390_NONE.
* sysdeps/unix/sysv/linux/s390/profile_counter.h (profil_counter) :
Remove high order bit from the program counter for 31 bit.
(See attached file: getpc_dlmachine.diff)
blue skies,
Martin
Linux/390 Design & Development, IBM Deutschland Entwicklung GmbH
Schönaicherstr. 220, D-71032 Böblingen, Telefon: 49 - (0)7031 - 16-2247
E-Mail: schwidefsky@de.ibm.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getpc_dlmachine.diff
Type: application/octet-stream
Size: 3461 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-hacker/attachments/20011219/6eb58c29/attachment.obj>
More information about the Libc-hacker
mailing list