[Bug binutils/11133] gc-sections deletes sections with __start/__stop reference
--- Additional Comments From amodra at gmail dot com 2010-01-07 11:23 --- Imagine someone who wants an array of functions (perhaps constructor like) or some other object used in their app. They set up weak references in a named section, then access the array using the __start_* symbol. The array itself isn't referenced so references there don't cause the functions to be kept. Oh.. My array won't be kept either. I didn't think of that earlier.. Hmm, the named section would need to be a debug section, and then it doesn't matter if there is a change in the way __start_* affects --gc-sections. So my concern that HJ's idea might affect some existing app is probably not valid. I still don't particularly like a reference to __start_somesection meaning that we should keep all "somesection" input sections. It would be better if there were a more explicit way to mark input sections. I also note that HJ's patch is incorrect since marking a section with gc_mark and returning NULL from gc_mark_hook will result in no mark phase recursion for that section. -- http://sourceware.org/bugzilla/show_bug.cgi?id=11133 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
Porting Binutils to A New Target And Getting Error.
I am trying to port binutils-2.19 to a new target. I have modified all the require configuration files and make files to add the new target details. I have also created .c and .h files in the respective directories. The configure script runs successfully and creates makefile. But when I give 'make all' command, I am getting 'unknown target vector' error. The log looks like: . . . . looking for a compliant stdint.h in stdint.h, checking for uintmax_t... yes checking for uintptr_t... yes checking for int_least32_t... yes checking for int_fast32_t... yes checking for uint64_t... yes checking what to include in bfd_stdint.h... stdint.h (already complete) checking whether time.h and sys/time.h may both be included... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking whether string.h and strings.h may both be included... yes checking for fcntl... yes checking for getpagesize... yes checking for setitimer... yes checking for sysconf... yes checking for fdopen... yes checking for getuid... yes checking for getgid... yes checking for strtoull... yes checking whether basename is declared... yes checking whether ftello is declared... yes checking whether ftello64 is declared... yes checking whether fseeko is declared... yes checking whether fseeko64 is declared... yes checking whether ffs is declared... yes checking whether free is declared... yes checking whether getenv is declared... yes checking whether malloc is declared... yes checking whether realloc is declared... yes checking whether stpcpy is declared... yes checking whether strstr is declared... yes checking whether snprintf is declared... yes checking whether vsnprintf is declared... yes checking for library containing zlibVersion... -lz checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes configure: error: *** unknown target vector bfd_elf32_my_target_vec . . . Help me in fixing this problem. Thanks in advance. -- View this message in context: http://old.nabble.com/Porting-Binutils-to-A-New-Target-And-Getting-Error.-tp27058018p27058018.html Sent from the Gnu - Binutils - Bugs mailing list archive at Nabble.com. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11133] gc-sections deletes sections with __start/__stop reference
-- What|Removed |Added GCC build triplet|x86_64 | GCC host triplet|x86_64 | GCC target triplet|x86_64 | Version|2.19|2.21 (HEAD) http://sourceware.org/bugzilla/show_bug.cgi?id=11133 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11133] gc-sections deletes sections with __start/__stop reference
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-07 13:36 --- *** Bug 3400 has been marked as a duplicate of this bug. *** -- What|Removed |Added CC||vda dot linux at googlemail ||dot com http://sourceware.org/bugzilla/show_bug.cgi?id=11133 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/11143] gc-sections deletes note section
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2010-01-07 13:44 --- Subject: Bug 11143 CVSROOT:/cvs/src Module name:src Changes by: h...@sourceware.org 2010-01-07 13:44:37 Modified files: bfd: ChangeLog elflink.c ld/testsuite : ChangeLog ld/testsuite/ld-gc: gc.exp Added files: ld/testsuite/ld-gc: abi-note.d abi-note.s Log message: Always keep SHT_NOTE sections bfd/ 2010-01-07 H.J. Lu PR ld/11143 * elflink.c (elf_gc_sweep): Keep SHT_NOTE section. ld/testsuite/ 2010-01-07 H.J. Lu PR ld/11143 * ld-gc/gc.exp: Run abi-note. * ld-gc/abi-note.d: New. * ld-gc/abi-note.s: Likewise. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.4874&r2=1.4875 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/bfd/elflink.c.diff?cvsroot=src&r1=1.362&r2=1.363 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=src&r1=1.1201&r2=1.1202 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-gc/abi-note.d.diff?cvsroot=src&r1=NONE&r2=1.1 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-gc/abi-note.s.diff?cvsroot=src&r1=NONE&r2=1.1 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-gc/gc.exp.diff?cvsroot=src&r1=1.6&r2=1.7 -- http://sourceware.org/bugzilla/show_bug.cgi?id=11143 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11133] gc-sections deletes sections with __start/__stop reference
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-07 13:47 --- (In reply to comment #7) > Imagine someone who wants an array of functions (perhaps constructor like) or > some other object used in their app. They set up weak references in a named > section, then access the array using the __start_* symbol. The array itself > isn't referenced so references there don't cause the functions to be kept. > Oh.. My array won't be kept either. I didn't think of that earlier.. Hmm, > the > named section would need to be a debug section, and then it doesn't matter if > there is a change in the way __start_* affects --gc-sections. > > So my concern that HJ's idea might affect some existing app is probably not > valid. I still don't particularly like a reference to __start_somesection > meaning that we should keep all "somesection" input sections. It would be > better if there were a more explicit way to mark input sections. I also note > that HJ's patch is incorrect since marking a section with gc_mark and > returning > NULL from gc_mark_hook will result in no mark phase recursion for that > section. I will try a different approach. -- What|Removed |Added CC||hjl dot tools at gmail dot ||com http://sourceware.org/bugzilla/show_bug.cgi?id=11133 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11133] gc-sections deletes sections with __start/__stop reference
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-07 14:03 --- (In reply to comment #7) > > So my concern that HJ's idea might affect some existing app is probably not > valid. I still don't particularly like a reference to __start_somesection > meaning that we should keep all "somesection" input sections. It would be Isn't it this bug all about? > better if there were a more explicit way to mark input sections. I also note > that HJ's patch is incorrect since marking a section with gc_mark and > returning > NULL from gc_mark_hook will result in no mark phase recursion for that > section. > The updated patch is posted at http://sourceware.org/ml/binutils/2010-01/msg00137.html -- http://sourceware.org/bugzilla/show_bug.cgi?id=11133 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/11143] gc-sections deletes note section
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-07 14:12 --- Fixed. -- What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED http://sourceware.org/bugzilla/show_bug.cgi?id=11143 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/11138] ld: internal error when using -lstdc++ and version script before object files
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-07 15:45 --- Created an attachment (id=4501) --> (http://sourceware.org/bugzilla/attachment.cgi?id=4501&action=view) A simple testcase [...@gnu-6 pr11138]$ make cc-c -o foo.o foo.c cc-c -o bar.o bar.c ./ld -o libbar.so -shared --version-script=bar.map bar.o ./ld -e main --version-script=foo.map -o bar foo.o libbar.so ./ld -e main --version-script=foo.map -o foo libbar.so foo.o ./ld: BFD (GNU Binutils) 2.20.51.20100107 internal error, aborting at /export/gnu/import/git/binutils/bfd/elflink.c line 8499 in elf_link_check_versioned_symbol ./ld: Please report this bug. make: *** [foo] Error 1 [...@gnu-6 pr11138]$ -- What|Removed |Added Attachment #4492 is|0 |1 obsolete|| Attachment #4493 is|0 |1 obsolete|| http://sourceware.org/bugzilla/show_bug.cgi?id=11138 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/11138] ld: internal error when using -lstdc++ and version script before object files
-- What|Removed |Added CC||hjl dot tools at gmail dot ||com Version|2.20|2.21 (HEAD) http://sourceware.org/bugzilla/show_bug.cgi?id=11138 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/11138] ld: internal error when using -lstdc++ and version script before object files
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-07 15:56 --- This should fix it. I will submit a proper patch. -- diff --git a/bfd/elflink.c b/bfd/elflink.c index 297d46b..b587ef6 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -8492,10 +8492,15 @@ elf_link_check_versioned_symbol (struct bfd_link_info *i nfo, _bfd_elf_swap_versym_in (input, ever, &iver); - if ((iver.vs_vers & VERSYM_HIDDEN) == 0) + if ((iver.vs_vers & VERSYM_HIDDEN) == 0 + && !(h->def_regular + && h->forced_local + && !h->dynamic_def)) { /* If we have a non-hidden versioned sym, then it should -have provided a definition for the undefined sym. */ +have provided a definition for the undefined sym unless +it is defined in a non-shared object and forced local. + */ abort (); } -- -- http://sourceware.org/bugzilla/show_bug.cgi?id=11138 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gas/11109] Invalid vcvt UAL encoding
--- Additional Comments From asl at math dot spbu dot ru 2010-01-07 17:06 --- Hi, Nick Looks ok for me, thanks! -- http://sourceware.org/bugzilla/show_bug.cgi?id=11109 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
Re: Porting Binutils to A New Target And Getting Error.
Hi Prashant, I am trying to port binutils-2.19 to a new target. Note - you would be better off using the current mainline development sources. But when I give 'make all' command, I am getting 'unknown target vector' error. Look at the bfd/config.bfd file. You will need to add an entry for your target. If you have not done so already then you will also need to modify the bfd/archures.c and bfd/targets.c files as well. Cheers Nick PS. There is now a guide to porting the binutils to a new target, which you may find helpful. See: http://sourceware.org/binutils/binutils-porting-guide.txt ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/11138] ld: internal error when DSO is before object files
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-07 17:51 --- A patch is posted at http://sourceware.org/ml/binutils/2010-01/msg00145.html -- What|Removed |Added Summary|ld: internal error when |ld: internal error when DSO |using -lstdc++ and version |is before object files |script before object files | Version|2.21 (HEAD) |2.20 http://sourceware.org/bugzilla/show_bug.cgi?id=11138 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11146] New: "readelf -Ds" doesn't work right
On Fedora/12 where gnu-hash is used, I got [...@gnu-6 pr]$ cat foo.c #include int main () { printf ("Hello\n"); return; } [...@gnu-6 pr]$ gcc foo.c [...@gnu-6 pr]$ readelf -Ds a.out [...@gnu-6 pr]$ readelf -s a.out Symbol table '.dynsym' contains 4 entries: Num:Value Size TypeBind Vis Ndx Name 0: 0 NOTYPE LOCAL DEFAULT UND 1: 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 2: 0 FUNCGLOBAL DEFAULT UND p...@glibc_2.2.5 (2) 3: 0 FUNCGLOBAL DEFAULT UND __libc_start_m...@glibc_2.2.5 (2) ... "readelf -Ds" uses hash section to find dynamic symbols. Since gnu-hash doesn't include local nor undefined dynamic symbols, those dynamic symbols aren't displayed. -- Summary: "readelf -Ds" doesn't work right Product: binutils Version: 2.21 (HEAD) Status: NEW Severity: normal Priority: P2 Component: binutils AssignedTo: unassigned at sources dot redhat dot com ReportedBy: hjl dot tools at gmail dot com CC: bug-binutils at gnu dot org http://sourceware.org/bugzilla/show_bug.cgi?id=11146 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/10980] Please support more options available from old ld
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2010-01-07 18:31 --- Subject: Bug 10980 CVSROOT:/cvs/src Module name:src Changes by: i...@sourceware.org 2010-01-07 18:31:30 Modified files: gold : ChangeLog errors.cc options.h Log message: PR 10980 * options.h (class General_options): Add --warn-unresolved-symbols and --error-unresolved-symbols. * errors.cc (Errors::undefined_symbol): Implement --warn-unresolved-symbols. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/ChangeLog.diff?cvsroot=src&r1=1.432&r2=1.433 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/errors.cc.diff?cvsroot=src&r1=1.11&r2=1.12 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/options.h.diff?cvsroot=src&r1=1.135&r2=1.136 -- http://sourceware.org/bugzilla/show_bug.cgi?id=10980 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/10980] Please support more options available from old ld
--- Additional Comments From ian at airs dot com 2010-01-07 18:33 --- I believe that all the command line options mentioned here are now implemented, or are erroneous. Thanks for the comprehensive report. Please open a new bug report for any new missing options, or for any problems with the options I recently added. -- What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://sourceware.org/bugzilla/show_bug.cgi?id=10980 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/11019] Xindex::initialize_symtab_xindex in object.cc is not instantiated
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2010-01-07 18:42 --- Subject: Bug 11019 CVSROOT:/cvs/src Module name:src Changes by: i...@sourceware.org 2010-01-07 18:42:03 Modified files: gold : ChangeLog object.cc Log message: PR 11019 * object.cc: Instantiate Xindex::initialize_symtab_xindex and Xindex::read_symtab_xindex. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/ChangeLog.diff?cvsroot=src&r1=1.434&r2=1.435 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/object.cc.diff?cvsroot=src&r1=1.115&r2=1.116 -- http://sourceware.org/bugzilla/show_bug.cgi?id=11019 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/11019] Xindex::initialize_symtab_xindex in object.cc is not instantiated
--- Additional Comments From ian at airs dot com 2010-01-07 18:43 --- Thanks for the bug report. I committed a variant of your patch which also instantiates Xindex::read_symtab_xindex. -- What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED http://sourceware.org/bugzilla/show_bug.cgi?id=11019 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/11033] gold creates twice time bigger binaries, sometimes
--- Additional Comments From ian at airs dot com 2010-01-07 18:56 --- These two programs just look different, and it's hard for me to believe that this is due to a difference between GNU ld and gold. For example, the gold binary has calls to fgets where the GNU ld binary does not. The gold binary has several more calls to __stack_chk_fail. Using gold should not cause changes of that sort. If you still see this problem, can you attach the complete set of input files and the link command that you are using? Thanks. -- What|Removed |Added Status|NEW |WAITING http://sourceware.org/bugzilla/show_bug.cgi?id=11033 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11146] Add "readelf --dyn-syms"
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-07 19:27 --- A patch is posted at http://sourceware.org/ml/binutils/2010-01/msg00158.html to add a new --dyn-syms option to dump only dynamic symbol table. -- What|Removed |Added Summary|"readelf -Ds" doesn't work |Add "readelf --dyn-syms" |right | http://sourceware.org/bugzilla/show_bug.cgi?id=11146 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/11042] Unresolved symbols when using --as-needed
X-Bugzilla-Reason: CC --- Additional Comments From cvs-commit at gcc dot gnu dot org 2010-01-07 19:33 --- Subject: Bug 11042 CVSROOT:/cvs/src Module name:src Changes by: i...@sourceware.org 2010-01-07 19:33:00 Modified files: gold : ChangeLog copy-relocs.cc Log message: PR 11042 * copy-relocs.cc (Copy_relocs::emit_copy_reloc): Mark the dynamic object as needed. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/ChangeLog.diff?cvsroot=src&r1=1.435&r2=1.436 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/copy-relocs.cc.diff?cvsroot=src&r1=1.7&r2=1.8 -- http://sourceware.org/bugzilla/show_bug.cgi?id=11042 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/11042] Unresolved symbols when using --as-needed
--- Additional Comments From ian at airs dot com 2010-01-07 19:34 --- Thanks for the bug report and the test case. I committed a patch which fixes the problem. -- What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED Summary|Unresolved symbols when |Unresolved symbols when |using --as-needed |using --as-needed http://sourceware.org/bugzilla/show_bug.cgi?id=11042 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
still struggling to produce the same flat binary with both 32 and 64bit binutils tool chains
I posted http://www.mail-archive.com/bug-binutils@gnu.org/msg08677.html on Wed, 09 Dec 2009 14:12:16 -0800 and Alan Modra very kindly advised that I needed to final link the file. Since that time I have been unable to reproduce the output with 64bit binutils. I've also tried a couple of forums. The nearest I've got is this i.e. .text _start: .global _start #keeps ld happy .int blob blob: as --32 -o test.o test.s ld -melf_i386 test.o objcopy -O binary a.out a.com hte a.com produces | 58 80 04 08 wich I think is a problem 'cos I was hoping for | 04 00 00 00 The reason for this is that the actual code I want to build, rather than this tiny example, is a standalone forth image. Once the bootloader has executed from 0x7c00 and loaded everything into memory it relocates the whole lot so that it starts at memory address 0x0. As such I can't help feeling that all addresses should be based on the presumption that the start of the file is address 0. If someone could please demonstrate how to get the same 32 bit result or a commensurate result (a 64bit ,com) that would jump to the right places from address 0x0 in memory I'd really appreciate it. On the other hand perhaps 58 80 04 08 is the right result and I'm just not interpreting it correctly. As always any help much appreciated. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/11061] Gold doesn't generate DT_RELCOUNT/DT_RELACOUNT
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2010-01-07 21:09 --- Subject: Bug 11061 CVSROOT:/cvs/src Module name:src Changes by: i...@sourceware.org 2010-01-07 21:09:31 Modified files: gold : ChangeLog layout.cc layout.h output.cc output.h Log message: PR 11061 * output.h (class Output_reloc) [SHT_RELA]: Add is_relative function. (class Output_data_reloc_generic): Define. (class Output_data_reloc_base): Change base class to Output_data_reloc_generic. Change add() method to call bump_relative_reloc_count for a relative reloc. Remove sort_relocs_ field. * output.cc (Output_data_reloc_base::do_write): Change sort_reloc_ to sort_relocs(). * layout.cc (Layout::add_target_dynamic_tags): Change dyn_rel to Output_data_reloc_generic*. Add DT_RELCOUNT/DT_RELACOUNT tag if appropriate. * layout.h (class Layout): Update declaration. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/ChangeLog.diff?cvsroot=src&r1=1.437&r2=1.438 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/layout.cc.diff?cvsroot=src&r1=1.160&r2=1.161 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/layout.h.diff?cvsroot=src&r1=1.77&r2=1.78 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/output.cc.diff?cvsroot=src&r1=1.112&r2=1.113 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gold/output.h.diff?cvsroot=src&r1=1.95&r2=1.96 -- http://sourceware.org/bugzilla/show_bug.cgi?id=11061 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/11061] Gold doesn't generate DT_RELCOUNT/DT_RELACOUNT
--- Additional Comments From ian at airs dot com 2010-01-07 21:12 --- Thanks for the bug report. Fixed. -- What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED http://sourceware.org/bugzilla/show_bug.cgi?id=11061 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/11062] -z nocombreloc doesn't work
--- Additional Comments From ian at airs dot com 2010-01-07 21:17 --- What do you mean by "always combines dynamic relocations?" It's true that gold always generates only a single .rel.dyn or .rela.dyn output section. What the -z combreloc option controls is whether the relocations are sorted. If you use -z nocombreloc, then the relocations will not be sorted. I'm not sure there is any particular reason to ever use -z nocombreloc, though I suppose it will make the link slightly faster. Is there anything wrong with this approach? -- What|Removed |Added Status|NEW |WAITING http://sourceware.org/bugzilla/show_bug.cgi?id=11062 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/11062] -z nocombreloc doesn't work
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-07 21:24 --- GNU linker manual says: `combreloc' Combines multiple reloc sections and sorts them to make dynamic symbol lookup caching possible. Separate reloc sections help debug linker. They may also help IFUNC and GNU2 TLS. -- What|Removed |Added Status|WAITING |NEW http://sourceware.org/bugzilla/show_bug.cgi?id=11062 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
Re: still struggling to produce the same flat binary with both 32 and 64bit binutils tool chains
On Thu, Jan 07, 2010 at 08:01:12PM +, me wrote: > As such I can't help feeling that all addresses should be based on the > presumption that the start of the file is address 0. Addresses usually don't start at zero. The start is set by your linker script, which you can see by adding --verbose to the ld command line. You can set the start to zero by adding -Ttext=0 or -Ttext-segment=0 to the linker command line (depending on version of ld). -- Alan Modra Australia Development Lab, IBM ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11107] ld fails to build
-- What|Removed |Added AssignedTo|unassigned at sources dot |amodra at gmail dot com |redhat dot com | Status|REOPENED|ASSIGNED Last reconfirmed|-00-00 00:00:00 |2010-01-08 01:38:29 date|| http://sourceware.org/bugzilla/show_bug.cgi?id=11107 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11107] ld fails to build
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2010-01-08 01:41 --- Subject: Bug 11107 CVSROOT:/cvs/src Module name:src Changes by: amo...@sourceware.org 2010-01-08 01:41:11 Modified files: ld : ChangeLog ld/emultempl : vxworks.em Log message: PR 11107 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/ChangeLog.diff?cvsroot=src&r1=1.2096&r2=1.2097 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/emultempl/vxworks.em.diff?cvsroot=src&r1=1.8&r2=1.9 -- http://sourceware.org/bugzilla/show_bug.cgi?id=11107 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11107] ld fails to build
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2010-01-08 01:41 --- Subject: Bug 11107 CVSROOT:/cvs/src Module name:src Branch: binutils-2_20-branch Changes by: amo...@sourceware.org 2010-01-08 01:41:37 Modified files: ld : ChangeLog ld/emultempl : vxworks.em Log message: PR 11107 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/ChangeLog.diff?cvsroot=src&only_with_tag=binutils-2_20-branch&r1=1.2039.2.17&r2=1.2039.2.18 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/emultempl/vxworks.em.diff?cvsroot=src&only_with_tag=binutils-2_20-branch&r1=1.8&r2=1.8.2.1 -- http://sourceware.org/bugzilla/show_bug.cgi?id=11107 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11107] ld fails to build
--- Additional Comments From amodra at gmail dot com 2010-01-08 01:43 --- Fixed -- What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://sourceware.org/bugzilla/show_bug.cgi?id=11107 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11133] gc-sections deletes sections with __start/__stop reference
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2010-01-08 01:43 --- Subject: Bug 11133 CVSROOT:/cvs/src Module name:src Changes by: h...@sourceware.org 2010-01-08 01:43:23 Modified files: bfd: ChangeLog elflink.c ld/testsuite : ChangeLog ld/testsuite/ld-gc: gc.exp Added files: ld/testsuite/ld-gc: start.d start.s Log message: Set SEC_KEEP on section XXX for undefined __start_XXX/__stop_XXX bfd/ 2010-01-07 H.J. Lu PR ld/11133 * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for undefined __start_XXX/__stop_XXX in all input files and set SEC_KEEP. ld/testsuite/ 2010-01-07 H.J. Lu PR ld/11133 * ld-gc/gc.exp: Run start. * ld-gc/start.d: New. * ld-gc/start.s: Likewise. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.4875&r2=1.4876 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/bfd/elflink.c.diff?cvsroot=src&r1=1.363&r2=1.364 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=src&r1=1.1202&r2=1.1203 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-gc/start.d.diff?cvsroot=src&r1=NONE&r2=1.1 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-gc/start.s.diff?cvsroot=src&r1=NONE&r2=1.1 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-gc/gc.exp.diff?cvsroot=src&r1=1.7&r2=1.8 -- http://sourceware.org/bugzilla/show_bug.cgi?id=11133 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11133] gc-sections deletes sections with __start/__stop reference
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-08 01:45 --- Fixed. -- What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED http://sourceware.org/bugzilla/show_bug.cgi?id=11133 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/11062] -z nocombreloc doesn't work
--- Additional Comments From ian at airs dot com 2010-01-08 02:54 --- gold will never change to use separate sections for dynamic relocations. That makes no sense in gold's architecture. Different sections can not possibly be required for IFUNC or GNU2 TLS, because the dynamic linker can not see sections; it can only see segments and DT_xxx dynamic tags.. Internally gold is able to segregate relocations as needed. I am closing this since there does not seem to be an actual bug here. -- What|Removed |Added Status|NEW |RESOLVED Resolution||WORKSFORME http://sourceware.org/bugzilla/show_bug.cgi?id=11062 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/11111] 'defined in discarded section' linker error using gcc 4.1.2 and binutils 2.18
--- Additional Comments From amodra at gmail dot com 2010-01-08 03:03 --- No 2.18 or 2.19 updates are planned for FSF binutils, and as HJ says, this is really a gcc bug. -- What|Removed |Added Status|NEW |RESOLVED Resolution||WONTFIX http://sourceware.org/bugzilla/show_bug.cgi?id=1 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/11138] ld: internal error when DSO is before object files
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2010-01-08 03:03 --- Subject: Bug 11138 CVSROOT:/cvs/src Module name:src Changes by: h...@sourceware.org 2010-01-08 03:03:17 Modified files: bfd: ChangeLog elflink.c ld/testsuite : ChangeLog ld/testsuite/ld-elf: shared.exp Added files: ld/testsuite/ld-elf: pr11138-1.c pr11138-1.map pr11138-2.c pr11138-2.map pr11138.out Log message: Fix PR ld/11138 bfd/ 2010-01-07 H.J. Lu PR ld/11138 * elflink.c (elf_link_check_versioned_symbol): Don't abort if a symbol referenced by DSO is is defined in a non-shared object and forced local. ld/testsuite/ 2010-01-07 H.J. Lu PR ld/11138 * ld-elf/pr11138-1.c: New. * ld-elf/pr11138-1.map: Likewise. * ld-elf/pr11138-2.c: Likewise. * ld-elf/pr11138-2.map: Likewise. * ld-elf/pr11138.out: Likewise. * ld-elf/shared.exp (build_tests): Add libpr11138-1.so and libpr11138-2.o. (run_tests): Add 2 tests for PR ld/11138. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.4876&r2=1.4877 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/bfd/elflink.c.diff?cvsroot=src&r1=1.364&r2=1.365 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=src&r1=1.1203&r2=1.1204 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/pr11138-1.c.diff?cvsroot=src&r1=NONE&r2=1.1 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/pr11138-1.map.diff?cvsroot=src&r1=NONE&r2=1.1 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/pr11138-2.c.diff?cvsroot=src&r1=NONE&r2=1.1 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/pr11138-2.map.diff?cvsroot=src&r1=NONE&r2=1.1 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/pr11138.out.diff?cvsroot=src&r1=NONE&r2=1.1 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/shared.exp.diff?cvsroot=src&r1=1.14&r2=1.15 -- http://sourceware.org/bugzilla/show_bug.cgi?id=11138 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/11138] ld: internal error when DSO is before object files
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-08 03:04 --- Fixed. -- What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED http://sourceware.org/bugzilla/show_bug.cgi?id=11138 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11133] gc-sections deletes sections with __start/__stop reference
-- What|Removed |Added CC||toolchain at gentoo dot org http://sourceware.org/bugzilla/show_bug.cgi?id=11133 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/10569] -z max-page-size may not work for linker scripts
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-08 05:13 --- Fixed. -- What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED http://sourceware.org/bugzilla/show_bug.cgi?id=10569 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11133] gc-sections deletes sections with __start/__stop reference
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2010-01-08 05:55 --- Subject: Bug 11133 CVSROOT:/cvs/src Module name:src Changes by: amo...@sourceware.org 2010-01-08 05:55:11 Modified files: bfd: ChangeLog elf32-cr16.c elf32-microblaze.c elf64-ppc.c Log message: PR ld/11133 * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook. * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise. * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.4877&r2=1.4878 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/bfd/elf32-cr16.c.diff?cvsroot=src&r1=1.12&r2=1.13 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/bfd/elf32-microblaze.c.diff?cvsroot=src&r1=1.3&r2=1.4 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/bfd/elf64-ppc.c.diff?cvsroot=src&r1=1.306&r2=1.307 -- http://sourceware.org/bugzilla/show_bug.cgi?id=11133 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils