David Howells
786d35d45c
Make most arch asm/module.h files use asm-generic/module.h
...
Use the mapping of Elf_[SPE]hdr, Elf_Addr, Elf_Sym, Elf_Dyn, Elf_Rel/Rela,
ELF_R_TYPE() and ELF_R_SYM() to either the 32-bit version or the 64-bit version
into asm-generic/module.h for all arches bar MIPS.
Also, use the generic definition mod_arch_specific where possible.
To this end, I've defined three new config bools:
(*) HAVE_MOD_ARCH_SPECIFIC
Arches define this if they don't want to use the empty generic
mod_arch_specific struct.
(*) MODULES_USE_ELF_RELA
Arches define this if their modules can contain RELA records. This causes
the Elf_Rela mapping to be emitted and allows apply_relocate_add() to be
defined by the arch rather than have the core emit an error message.
(*) MODULES_USE_ELF_REL
Arches define this if their modules can contain REL records. This causes
the Elf_Rel mapping to be emitted and allows apply_relocate() to be
defined by the arch rather than have the core emit an error message.
Note that it is possible to allow both REL and RELA records: m68k and mips are
two arches that do this.
With this, some arch asm/module.h files can be deleted entirely and replaced
with a generic-y marker in the arch Kbuild file.
Additionally, I have removed the bits from m32r and score that handle the
unsupported type of relocation record as that's now handled centrally.
Signed-off-by: David Howells <dhowells@redhat.com >
Acked-by: Sam Ravnborg <sam@ravnborg.org >
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2012-09-28 14:31:03 +09:30
..
2011-04-21 16:59:30 -07:00
2012-03-21 11:16:11 +11:00
2012-07-10 19:18:11 +10:00
2009-12-12 13:08:14 +01:00
2009-12-11 21:24:44 -07:00
2012-03-28 18:30:02 +01:00
2012-03-28 18:30:02 +01:00
2012-03-28 18:30:02 +01:00
2011-11-17 16:26:07 +11:00
2012-03-28 18:30:02 +01:00
2012-03-28 18:30:02 +01:00
2009-11-26 09:16:19 +01:00
2010-09-02 14:07:30 +10:00
2012-03-28 18:30:02 +01:00
2012-07-03 14:14:38 +10:00
2011-10-28 14:58:53 +02:00
2011-03-31 11:26:23 -03:00
2009-11-11 21:43:19 -06:00
2011-03-31 11:26:23 -03:00
2012-08-24 20:26:06 +10:00
2012-05-22 14:37:00 +10:00
2012-01-06 17:58:22 -08:00
2012-04-08 12:54:50 +03:00
2009-12-11 21:24:44 -07:00
2012-03-28 18:30:02 +01:00
2012-07-10 19:18:59 +10:00
2012-07-30 12:25:46 +02:00
2012-03-28 18:30:02 +01:00
2012-03-09 11:39:46 +11:00
2012-03-09 11:39:51 +11:00
2012-02-14 14:06:50 -07:00
2011-07-21 14:10:00 +02:00
2011-07-26 16:49:47 -07:00
2012-05-30 11:43:10 +02:00
2011-06-29 17:47:48 +10:00
2012-07-11 14:18:22 +10:00
2012-03-28 18:30:02 +01:00
2012-02-23 10:50:02 +11:00
2011-05-04 15:19:26 +10:00
2012-03-21 11:16:11 +11:00
2009-12-12 22:24:30 -07:00
2011-11-08 14:51:46 +11:00
2010-10-14 00:54:38 -05:00
2012-03-29 08:14:07 -05:00
2011-06-27 08:30:19 -05:00
2012-01-04 15:41:22 -06:00
2011-11-24 02:01:40 -06:00
2011-05-26 13:38:57 +10:00
2011-11-17 16:26:07 +11:00
2012-05-11 18:00:14 -06:00
2010-02-17 14:02:49 +11:00
2012-03-20 21:48:30 +08:00
2011-12-07 16:26:24 +11:00
2012-05-24 16:17:30 -07:00
2011-07-01 13:10:21 +10:00
2012-03-28 18:30:02 +01:00
2012-07-24 12:01:20 -07:00
2010-10-18 11:03:21 +02:00
2012-02-14 14:06:50 -07:00
2009-11-11 21:43:18 -06:00
2012-07-10 07:08:58 -05:00
2011-05-06 13:19:01 +10:00
2011-04-27 14:18:31 +10:00
2012-07-11 18:22:32 +10:00
2011-02-17 14:16:30 -08:00
2012-07-03 14:14:48 +10:00
2012-04-30 10:45:26 +10:00
2012-03-09 13:25:06 +11:00
2012-02-24 10:05:59 +01:00
2011-12-16 14:39:48 +11:00
2011-12-20 10:20:19 -05:00
2011-12-08 14:02:23 +11:00
2012-02-21 11:40:36 +01:00
2010-10-29 13:14:42 -05:00
2012-07-24 15:27:29 +08:00
2011-03-31 11:26:23 -03:00
2011-05-22 08:47:53 -04:00
2012-05-06 16:19:08 +02:00
2012-03-05 14:52:30 +02:00
2012-05-30 11:43:10 +02:00
2012-07-11 14:18:40 +10:00
2012-05-24 16:17:30 -07:00
2012-04-08 12:51:19 +03:00
2012-04-08 12:51:02 +03:00
2010-09-02 14:07:32 +10:00
2012-08-16 14:14:53 +02:00
2012-04-08 12:48:59 +03:00
2012-08-16 14:14:53 +02:00
2012-04-08 12:54:33 +03:00
2010-06-09 11:12:36 +02:00
2011-07-26 16:49:47 -07:00
2012-04-30 15:37:16 +10:00
2012-04-24 15:34:16 -07:00
2012-03-28 11:32:01 +11:00
2011-06-10 14:55:36 +02:00
2009-12-09 17:09:14 +11:00
2009-09-22 07:17:41 -07:00
2011-05-04 15:19:26 +10:00
2010-05-05 09:11:10 -04:00
2012-04-08 12:51:19 +03:00
2012-03-28 14:41:36 -07:00
2012-07-03 14:14:50 +10:00
2011-06-27 14:13:09 -07:00
2012-09-28 14:31:03 +09:30
2010-08-06 20:49:18 -06:00
2010-08-06 20:49:18 -06:00
2010-08-01 17:06:44 -06:00
2012-08-24 20:26:04 +10:00
2012-04-23 11:04:30 +10:00
2010-02-17 14:03:15 +11:00
2011-03-04 18:19:04 +11:00
2011-12-07 18:02:02 +11:00
2012-03-09 13:25:06 +11:00
2010-08-11 08:59:21 -07:00
2011-12-07 16:26:21 +11:00
2011-12-20 10:21:34 -05:00
2010-02-03 17:39:48 +11:00
2010-05-06 16:49:26 +10:00
2011-03-31 11:26:23 -03:00
2012-06-13 15:42:24 -06:00
2012-03-20 10:41:44 -07:00
2010-07-09 11:28:30 +10:00
2010-03-05 03:04:08 -06:00
2012-03-28 11:33:24 +11:00
2012-07-10 19:18:41 +10:00
2009-10-30 17:20:57 +11:00
2010-05-06 16:49:27 +10:00
2011-05-25 08:39:16 -07:00
2010-10-26 16:52:08 -07:00
2011-06-29 17:48:16 +10:00
2011-11-25 14:32:52 +11:00
2011-03-31 11:26:23 -03:00
2009-12-06 17:06:19 +01:00
2009-09-24 15:31:39 +10:00
2012-05-30 21:04:50 -04:00
2012-07-10 19:18:30 +10:00
2012-07-10 19:18:35 +10:00
2012-03-23 14:02:12 -07:00
2012-09-05 16:05:20 +10:00
2011-07-26 16:49:47 -07:00
2012-05-14 10:49:06 +10:00
2009-12-09 17:10:37 +11:00
2009-09-24 15:31:49 +10:00
2011-09-20 09:19:40 +10:00
2011-04-18 13:08:21 +10:00
2011-05-10 10:16:21 +02:00
2012-04-30 15:37:28 +10:00
2011-03-30 15:38:02 +02:00
2012-07-10 07:08:58 -05:00
2011-05-06 13:32:41 +10:00
2012-05-24 16:17:30 -07:00
2010-03-05 03:04:08 -06:00
2012-07-11 15:25:45 +10:00
2011-06-02 15:29:08 -05:00
2012-03-28 15:58:21 -07:00
2012-03-28 18:30:02 +01:00
2010-08-07 18:15:50 +02:00
2011-04-20 17:01:19 +10:00
2011-11-16 14:47:54 +11:00
2012-03-28 18:30:02 +01:00
2010-05-26 08:30:15 -07:00
2012-03-28 11:33:23 +11:00
2011-07-21 14:10:00 +02:00
2012-02-24 01:37:35 -08:00
2011-09-20 15:53:23 +10:00
2009-12-14 23:55:32 +01:00
2012-03-21 11:16:12 +11:00
2011-03-31 11:26:23 -03:00
2012-01-08 12:19:57 -08:00
2012-06-02 10:44:11 -04:00
2012-05-24 16:17:30 -07:00
2011-11-17 16:26:07 +11:00
2011-05-26 13:38:57 +10:00
2010-03-12 15:52:32 -08:00
2011-10-31 17:30:44 -07:00
2011-11-25 14:32:57 +11:00
2010-08-10 13:47:39 -07:00
2012-07-11 14:18:22 +10:00
2012-05-06 16:19:07 +02:00
2011-05-25 08:39:16 -07:00
2011-04-20 16:59:20 +10:00
2012-05-09 15:00:55 +02:00
2012-07-03 14:14:41 +10:00
2012-01-08 12:19:57 -08:00
2012-05-27 21:00:07 -07:00
2012-03-28 11:33:23 +11:00
2011-04-26 23:31:11 -07:00
2012-07-30 17:25:21 -07:00
2011-03-31 11:26:23 -03:00
2012-07-11 14:18:40 +10:00
2012-07-10 19:18:57 +10:00
2012-05-27 21:00:07 -07:00
2011-05-06 13:32:35 +10:00
2012-02-14 14:06:50 -07:00