[IA64] Fix BZ17792 - Remove fixed page size macros and others

Message ID 6D39441BF12EF246A7ABCE6654B0235320F95840@LEMAIL01.le.imgtec.org
State Committed
Headers

Commit Message

Matthew Fortune Jan. 5, 2015, 3:07 p.m. UTC
  Fix BZ17792.

Remove IA64 PAGE_SIZE related macros as PAGE_SIZE is not defined.
Also remove macros that are only used for BFD's trad-core support
which is not relavant for IA64 according to the thread starting
here:

https://sourceware.org/ml/libc-ports/2013-11/msg00028.html

This patch is neither built nor tested but is equivalent to a MIPS
patch for the same fix.

Thanks,
Matthew

	* sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
	(UPAGES, HOST_TEXT_START_ADDR): Likewise.
	(HOST_DATA_START_ADDR, HOST_STACK_END_ADDR): Likewise.
---
 sysdeps/unix/sysv/linux/ia64/sys/user.h | 6 ------
 1 file changed, 6 deletions(-)
  

Comments

Mike Frysinger Feb. 15, 2015, 11:24 a.m. UTC | #1
On 05 Jan 2015 15:07, Matthew Fortune wrote:
> Fix BZ17792.
> 
> Remove IA64 PAGE_SIZE related macros as PAGE_SIZE is not defined.
> Also remove macros that are only used for BFD's trad-core support
> which is not relavant for IA64 according to the thread starting
> here:
> 
> https://sourceware.org/ml/libc-ports/2013-11/msg00028.html
> 
> This patch is neither built nor tested but is equivalent to a MIPS
> patch for the same fix.

thanks, i've merged this into master now (after verifying it doesn't break glibc 
builds/tests at least)
-mike
  

Patch

diff --git a/sysdeps/unix/sysv/linux/ia64/sys/user.h b/sysdeps/unix/sysv/linux/ia64/sys/user.h
index 56cd045..fbd4200 100644
--- a/sysdeps/unix/sysv/linux/ia64/sys/user.h
+++ b/sysdeps/unix/sysv/linux/ia64/sys/user.h
@@ -44,10 +44,4 @@  struct user
   char u_comm[32];				/* User command name.  */
 };
 
-#define NBPG			PAGE_SIZE
-#define UPAGES			1
-#define HOST_TEXT_START_ADDR	(u.start_code)
-#define HOST_DATA_START_ADDR	(u.start_data)
-#define HOST_STACK_END_ADDR	(u.start_stack + u.u_ssize * NBPG)
-
 #endif	/* sys/user.h */