OSDN Git Service

elf2dmp: Rename PAGE_SIZE to ELF2DMP_PAGE_SIZE
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Mon, 18 Jan 2021 06:38:04 +0000 (14:38 +0800)
committerThomas Huth <thuth@redhat.com>
Wed, 20 Jan 2021 09:46:54 +0000 (10:46 +0100)
commit2d0fc797faaa73fbc1d30f5f9e90407bf3dd93f0
tree313e29b9646e6e324be3b280dab8ef9a767ea422
parent9c57272507a95cde3c9c2c90af2312f92cb55422
elf2dmp: Rename PAGE_SIZE to ELF2DMP_PAGE_SIZE

As per POSIX specification of limits.h [1], OS libc may define
PAGE_SIZE in limits.h.

To prevent collosion of definition, we rename PAGE_SIZE here.

[1]: https://pubs.opengroup.org/onlinepubs/7908799/xsh/limits.h.html

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210118063808.12471-6-jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
contrib/elf2dmp/addrspace.c
contrib/elf2dmp/addrspace.h
contrib/elf2dmp/main.c