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]

[PATCH] s390 check-textrel failure.


Hi,
I found out why the check-textrel complains about libc.so. In vfork.S
is a non pc relative reference for __fork. Consequently there is a
R_390_RELATIVE relocation in the .rela.dyn against it.

blues skies,
  Martin.

linuxthreads/ChangeLog:
2003-01-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>

	* sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Avoid non pc relative
	reference to __fork.

diff -urN libc/linuxthreads/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S libc-s390/linuxthreads/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S
--- libc/linuxthreads/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S	Tue Jan 14 09:52:45 2003
+++ libc-s390/linuxthreads/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S	Fri Jan 17 09:07:01 2003
@@ -43,10 +43,10 @@
 0:
 	basr	%r1,0
 1:
-	l	%r1,2f-1b(%r1)
+	al	%r1,2f-1b(%r1)
 	br	%r1
 2:
-	.long	HIDDEN_JUMPTARGET(__fork)
+	.long	HIDDEN_JUMPTARGET(__fork)-1b
 PSEUDO_END(__vfork)
 
 libc_hidden_def (__vfork)


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