diff options
author | David Daney <david.daney@cavium.com> | 2012-04-24 14:23:14 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2012-04-24 14:42:20 -0400 |
commit | d59a16836d917548cf41eda3369936684d527f5f (patch) | |
tree | a332ee65290db2a53fb3cfca6e97de2a622c3df6 /scripts/Makefile | |
parent | 706276543b699d80f546e45f8b12574e7b18d952 (diff) |
scripts/sortextable: Handle relative entries, and other cleanups
x86 is now using relative rather than absolute addresses in its
exception table, so we add a sorter for these. If there are
relocations on the __ex_table section, they are redundant and probably
incorrect after the sort, so they are zeroed out leaving them valid
and consistent.
Also use the unaligned safe accessors from tools/{be,le}_byteshift.h
Signed-off-by: David Daney <david.daney@cavium.com>
Link: http://lkml.kernel.org/r/1335291795-26693-2-git-send-email-ddaney.cavm@gmail.com
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'scripts/Makefile')
-rw-r--r-- | scripts/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/Makefile b/scripts/Makefile index 43e19b9fc641..9eace52c64df 100644 --- a/scripts/Makefile +++ b/scripts/Makefile | |||
@@ -15,6 +15,8 @@ hostprogs-$(CONFIG_IKCONFIG) += bin2c | |||
15 | hostprogs-$(BUILD_C_RECORDMCOUNT) += recordmcount | 15 | hostprogs-$(BUILD_C_RECORDMCOUNT) += recordmcount |
16 | hostprogs-$(CONFIG_BUILDTIME_EXTABLE_SORT) += sortextable | 16 | hostprogs-$(CONFIG_BUILDTIME_EXTABLE_SORT) += sortextable |
17 | 17 | ||
18 | HOSTCFLAGS_sortextable.o = -I$(srctree)/tools/include | ||
19 | |||
18 | always := $(hostprogs-y) $(hostprogs-m) | 20 | always := $(hostprogs-y) $(hostprogs-m) |
19 | 21 | ||
20 | # The following hostprogs-y programs are only build on demand | 22 | # The following hostprogs-y programs are only build on demand |