Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 136499
Collapse All | Expand All

(-)bfd/elflink.c (-3 / +12 lines)
Lines 2809-2814 Link Here
2809
  hash_table = elf_hash_table (info);
2809
  hash_table = elf_hash_table (info);
2810
  if (! is_elf_hash_table (hash_table))
2810
  if (! is_elf_hash_table (hash_table))
2811
    return FALSE;
2811
    return FALSE;
2812
  //The shared objects will be checked later on
2813
  if (info->warn_shared_textrel && !info->shared && tag == DT_TEXTREL)
2814
    _bfd_error_handler
2815
      (_("warning: creating a DT_TEXTREL in object."));
2812
2816
2813
  bed = get_elf_backend_data (hash_table->dynobj);
2817
  bed = get_elf_backend_data (hash_table->dynobj);
2814
  s = bfd_get_section_by_name (hash_table->dynobj, ".dynamic");
2818
  s = bfd_get_section_by_name (hash_table->dynobj, ".dynamic");
2815
-- ld/ldmain.c
2819
++ ld/ldmain.c
Lines 314-320 main (int argc, char **argv) Link Here
314
  link_info.flags = 0;
314
  link_info.flags = 0;
315
  link_info.flags_1 = 0;
315
  link_info.flags_1 = 0;
316
  link_info.relax_pass = 1;
316
  link_info.relax_pass = 1;
317
  link_info.warn_shared_textrel = FALSE;
317
  link_info.warn_shared_textrel = TRUE;
318
  link_info.gc_sections = FALSE;
318
  link_info.gc_sections = FALSE;
319
319
320
  ldfile_add_arch ("");
320
  ldfile_add_arch ("");
321
-- ld/testsuite/lib/ld-lib.exp
321
++ ld/testsuite/lib/ld-lib.exp
Lines 181-186 proc default_ld_simple_link { ld target Link Here
181
    # symbol, since the default linker script might use ENTRY.
181
    # symbol, since the default linker script might use ENTRY.
182
    regsub -all "(^|\n)(\[^\n\]*: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
182
    regsub -all "(^|\n)(\[^\n\]*: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
183
183
184
    # Gentoo tweak:
185
    # We want to ignore TEXTREL warnings since we force enable them by default
186
    regsub -all "^lt-ld-new: warning: creating a DT_TEXTREL in object\." $exec_output "\\1" exec_output
187
    regsub -all "^lt-ld-new: warning: creating a DT_TEXTREL in a shared object\." $exec_output "\\1" exec_output
188
184
    if [string match "" $exec_output] then {
189
    if [string match "" $exec_output] then {
185
	return 1
190
	return 1
186
    } else {
191
    } else {

Return to bug 136499