-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Florian Weimer wrote: > Unfortunately, this patch doesn't fix the problem. Maybe Ocaml itself > needs to be compiled with -ffunctio-sections, or the linker error > message is wrong. Yes, I reopened the bug (#332902) after seeing this too. It appears there may be something else wrong, as there is a bug against binutils where someone else ran into this and -ffunction-sections didn't work. So I reassigned 332902 to binutils and merged them. IMO, adding that option to all of OCaml is a bad idea based on the notes in the gcc manpage: Only use these options when there are significant benefits from doing so. When you specify these options, the assembler and linker will create larger object and executable files and will also be slower. You will not be able to use "gprof" on all systems if you specify this option and you may have problems with debugging if you specify both this option and -g.
Losing the ability to use -p and -g is a serious drawback and not an acceptable workaround. Of course, there is a (not so small) possibility that this is a bug in OCaml. However, since at least one program written in another language is affected as well(#334497), I think the best action is to at least look at it from a binutils point of view for now. Cheers, - -Mike -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDmGDX7ZPKKRJLJvMRAgCcAJ9n2PKBoc0ZAdjdVaXn69vMHoHPAQCfaQQB wiORnL0gFzEKTbqTfxR72Ow= =6jNZ -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]