modpost: support objects with more than 64k sections
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 28 Jul 2010 23:47:53 +0000 (01:47 +0200)
committerMichal Marek <mmarek@suse.cz>
Tue, 3 Aug 2010 13:05:56 +0000 (15:05 +0200)
commit1ce53adf13a54375d2a5c7cdbe341b2558389615
treeebd9f596daa9cdbf3eca2f964e2f58946d4b4d16
parent4696e2958b345189afebcb52e365d16ca6e403ef
modpost: support objects with more than 64k sections

This patch makes modpost able to process object files with more than
64k sections. Needed for huge kernel builds (allyesconfig, for example)
with -ffunction-sections. 64k sections handling is covered, for example,
by this document:

"IA-64 gABI Proposal 74: Section Indexes"
http://www.codesourcery.com/public/cxx-abi/abi/prop-74-sindex.html

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/mod/file2alias.c
scripts/mod/modpost.c
scripts/mod/modpost.h