Correct build on systems without PAGE_MASK
* exec/exec.c (write_load_command) <PAGE_MASK, PAGE_SIZE>: Uniformly define even if !HAVE_GETPAGESIZE.
This commit is contained in:
@@ -309,10 +309,10 @@ write_load_command (program_header *header, bool use_alternate,
|
|||||||
#else /* HAVE_GETPAGESIZE */
|
#else /* HAVE_GETPAGESIZE */
|
||||||
if (!pagesize)
|
if (!pagesize)
|
||||||
pagesize = sysconf (_SC_PAGESIZE);
|
pagesize = sysconf (_SC_PAGESIZE);
|
||||||
|
#endif /* HAVE_GETPAGESIZE */
|
||||||
|
|
||||||
#define PAGE_MASK (~(pagesize - 1))
|
#define PAGE_MASK (~(pagesize - 1))
|
||||||
#define PAGE_SIZE (pagesize)
|
#define PAGE_SIZE (pagesize)
|
||||||
#endif /* HAVE_GETPAGESIZE */
|
|
||||||
#endif /* PAGE_MASK */
|
#endif /* PAGE_MASK */
|
||||||
|
|
||||||
start = header->p_vaddr & PAGE_MASK;
|
start = header->p_vaddr & PAGE_MASK;
|
||||||
|
|||||||
Reference in New Issue
Block a user