This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
[Bug binutils/23919] bfd doesn't handle ELF compressed data alignment
- From: "mark at klomp dot org" <sourceware-bugzilla at sourceware dot org>
- To: elfutils-devel at sourceware dot org
- Date: Wed, 28 Nov 2018 09:32:57 +0000
- Subject: [Bug binutils/23919] bfd doesn't handle ELF compressed data alignment
- Auto-submitted: auto-generated
- References: <bug-23919-10460@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=23919
--- Comment #11 from Mark Wielaard <mark at klomp dot org> ---
(In reply to H.J. Lu from comment #9)
> This change triggered
>
> gcctestdir/collect-ld: warning: gdb_index_test_cdebug_gabi.o: section
> .debug_str contains incorrectly aligned strings; the alignment of those
> strings won't be preserved
> gcctestdir/collect-ld: warning: gdb_index_test_3.o: section .debug_str
> contains incorrectly aligned strings; the alignment of those strings won't
> be preserved
> gcctestdir/collect-ld: error: treating warnings as errors
> collect2: error: ld returned 1 exit status
> make[3]: *** [gdb_index_test_3] Error 1
>
> in gold tests.
I think this comes from do_add_input_section in gold/merge.cc.
It decompresses the section, but doesn't use ch_addralign, but
this->addralign(), when calculating the alignment constraint.
--
You are receiving this mail because:
You are on the CC list for the bug.