readelf reporting of e_shstrndx is slightly wrong

2018-08-17 Thread Mike Murphy
According to the ELF standard: e_shstrndx This member holds the section header table index of the entry associated with the section name string table. If the file has no section name string table, this member holds the value SHN_UNDEF. See ``Sections''

[Bug binutils/23460] regression: ar can not create archive containing many (>1024) lto object files

2018-08-17 Thread zenith432 at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=23460 --- Comment #21 from zenith432 at users dot sourceforge.net --- Created attachment 11193 --> https://sourceware.org/bugzilla/attachment.cgi?id=11193&action=edit Patch implementing Comment 18 Attached is a patch that implements algorithm sugg

[Bug binutils/23460] regression: ar can not create archive containing many (>1024) lto object files

2018-08-17 Thread zenith432 at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=23460 --- Comment #20 from zenith432 at users dot sourceforge.net --- It's not just repetitive calls to dlopen() on the same plugin. It is also repetitive calls to onload() on the same plugin. This isn't supported by the plugin API. Today this wor

[Bug binutils/23460] regression: ar can not create archive containing many (>1024) lto object files

2018-08-17 Thread evangelos at foutrelis dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23460 --- Comment #19 from Evangelos Foutras --- I believe it's safe to remove the call to dlclose() which, as far as I can tell, would restore the previous behavior of the plugin loader. I will do a Chromium build to verify that the patch from comm

[Bug gold/23535] gold needs to produce two PT_NOTE segments with ELFCLASS64

2018-08-17 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23535 --- Comment #1 from H.J. Lu --- A testcase: [hjl@gnu-17 tmp]$ cat x.S .text .globl _start .type _start, @function _start: ret .section ".note", "a" #ifdef __LP64__ .p2align 3 #else .

[Bug binutils/23460] regression: ar can not create archive containing many (>1024) lto object files

2018-08-17 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23460 --- Comment #18 from Alan Modra --- If we aren't closing plugins, I think we should probably put open plugins on a list so they aren't reopened. glibc may well cope with dlopening the same module possibly many thousands of times, but that mi

[Bug ld/23515] Empty GNU_PROPERTY_X86_FEATURE_1_AND isn't removed

2018-08-17 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=23515 --- Comment #1 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by H.J. Lu : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bfb1e8c15a6b7d02cd0b9a124d01722a07ebf09a commit bfb1e8c15a6b7d02cd0b9a124d01722a

[Bug binutils/23460] regression: ar can not create archive containing many (>1024) lto object files

2018-08-17 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23460 --- Comment #17 from Nick Clifton --- Created attachment 11192 --> https://sourceware.org/bugzilla/attachment.cgi?id=11192&action=edit Proposed patch Hi Guys, I agree that the current proposed patch is essentially the same as not calli