H.J. Lu c398915025 Don't generate empty reloc sections
binutils/

	PR binutils/13947
	* objcopy.c (copy_object): Call copy_relocations_in_section
	before copy_section.
	(skip_section): New.
	(copy_relocations_in_section): Likewise.
	(copy_section): Use skip_section.  Don't copy relocations here.

binutils/testsuite/

	PR binutils/13947
	* binutils-all/i386/compressed-1b.d: Remove empty REL section.
	* binutils-all/i386/compressed-1c.d: Likewise.

	* binutils-all/x86-64/compressed-1b.d: Remove empty RELA
	section.
	* binutils-all/x86-64/compressed-1c.d: Likewise.
2012-04-13 02:52:34 +00:00
..
2009-09-02 07:25:43 +00:00
2012-04-13 02:52:34 +00:00
2010-10-11 22:18:42 +00:00
2009-09-02 07:25:43 +00:00
2010-01-20 00:09:13 +00:00
2010-01-20 00:09:13 +00:00
2004-10-24 17:49:55 +00:00
2011-05-02 12:47:47 +00:00
1999-05-03 07:29:11 +00:00
2009-03-10 00:48:10 +00:00
2009-09-02 07:25:43 +00:00
2011-06-19 21:22:16 +00:00
2012-04-03 16:01:38 +00:00
2011-07-22 20:22:38 +00:00
2010-01-20 00:09:13 +00:00
2010-05-18 03:31:07 +00:00
2010-05-18 03:31:07 +00:00
2010-05-18 03:31:07 +00:00
2008-10-03 15:08:22 +00:00
2008-10-03 15:08:22 +00:00
2008-10-03 15:08:22 +00:00
2008-10-03 15:08:22 +00:00
2006-06-24 09:10:04 +00:00
2009-04-16 04:24:07 +00:00
2006-06-23 16:23:09 +00:00
2009-04-16 04:24:07 +00:00
2011-05-18 16:35:03 +00:00
2012-03-13 00:41:22 +00:00
2012-02-25 19:51:34 +00:00
2011-10-04 14:25:40 +00:00
2012-02-01 15:44:30 +00:00
2010-07-19 15:11:03 +00:00
2010-07-19 15:11:03 +00:00
2008-07-10 01:32:23 +00:00
2009-09-02 07:25:43 +00:00
2006-09-14 23:37:35 +00:00
2008-10-03 15:08:22 +00:00
2008-10-03 15:08:22 +00:00
2009-09-07 18:07:02 +00:00
2005-10-19 20:49:03 +00:00
2012-02-11 20:02:03 +00:00