This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Two small fixes for s/390.



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

Attachment: =?iso-8859-1?Q?getpc=5Fdlmachine.diff?=
Description: Binary data


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