Lines Matching refs:toc
210 /* Flags set on encountering toc relocs. */
258 { "toc", ppc_toc, 0 },
332 rtoc or r.toc has the value 2
564 { "r.toc", 2 }, /* Pointer to the table of contents */
991 /* The RS/6000 assembler uses a TOC which holds addresses of functions
992 and variables. Symbols are put in the TOC with the .tc pseudo-op.
993 A special relocation is used when accessing TOC entries. We handle
994 the TOC as a subsegment within the .data segment. We set it up if
995 we see a .toc pseudo-op, and save the csect symbol here. */
998 /* The first frag in the TOC subsegment. */
1001 /* The first frag in the first subsegment after the TOC in the .data
1002 segment. NULL if there are no subsegments after the TOC. */
1971 MAP64 ("toc", BFD_RELOC_PPC_TOC16),
1972 MAP64 ("toc@l", BFD_RELOC_PPC64_TOC16_LO),
1973 MAP64 ("toc@h", BFD_RELOC_PPC64_TOC16_HI),
1974 MAP64 ("toc@ha", BFD_RELOC_PPC64_TOC16_HA),
2068 && strcmp (S_GET_NAME (exp_p->X_add_symbol), ".TOC.") == 0)
2070 /* Change the symbol so that the dummy .TOC. symbol can be
2390 asection *toc;
2422 toc = bfd_get_section_by_name (stdoutput, ".toc");
2423 if (toc != NULL
2425 && bfd_section_size (stdoutput, toc) > 0x10000)
2426 as_warn (_("TOC section size exceeds 64k"));
2429 /* .TOC. used in an opd entry as .TOC.@tocbase doesn't need to be
2430 emitted. Other uses of .TOC. will cause the symbol to be marked
2439 symp = symbol_find (".TOC.");
2458 * [toc] [tocv] [toc32] [toc64]
2464 * toc_kind: kind of toc reference
2471 * [toc] - rv == success, toc_kind = default_toc
2480 default_toc, /* The toc cell constructed should be the system default size */
2481 data_in_toc, /* This is a direct reference to a toc cell */
2482 must_be_32, /* The toc cell constructed must be 32 bits wide */
2483 toc cell constructed must be 64 bits wide */
2505 if (strcmp (toc_spec, "toc") == 0)
2523 as_bad (_("syntax error: invalid toc specifier `%s'"), toc_spec);
2548 /* See whether a symbol is in the TOC section. */
2560 return strcmp (sname, ".toc") == 0;
2786 * lwz r4,[toc].GS.0.static_int(rtoc)
2789 * register must be the toc register: 'rtoc' or '2'
2794 * The linker will build the toc, and insert the resolved toc offset.
2797 * o The size of the toc entry is currently assumed to be
2801 * there are also toc entries that are specified to be
2805 * These demand toc entries of the specified size, and the
2834 /* 1. The symbol must be defined and either in the toc
2848 as_bad (_("[tocv] symbol is not a toc symbol"));
2856 toc entries. We don't support them today. Is this
3203 ppc_obj64 ? "@toc" : "@xgot");
4749 /* The .toc pseudo-op. Switch to the .toc subsegment. */
4768 sym = symbol_find_or_make ("TOC[TC0]");
4866 give to this location in the toc; this will be a symbol with class
4868 this location in the TOC; often there is just one more argument, a
4881 /* Define the TOC symbol name. */
4890 as_bad (_(".tc not in .toc section"));
4937 /* Skip the TOC symbol name. */
5596 /* Don't adjust TOC relocs to use the section symbol. */
5872 /* This is the TOC table. */
5873 know (strcmp (S_GET_NAME (sym), "TOC") == 0);
5922 /* This is a TOC definition. x_scnlen is the size of the
5923 TOC entry. */
6183 a symbol in the TOC subsegment into a reloc against the
6228 _("symbol in .toc does not match any .tc"));
6237 /* Don't adjust if this is a reloc in the toc section. */
6553 /* An instruction like `lwz 9,sym(30)' when `sym' is not a TOC symbol
6556 is the documented behaviour of non-TOC symbols. */
6573 in the toc. But at parse time, SYM may be not yet defined, so
7115 /* Arrange to emit .TOC. as a normal symbol if used in anything
7116 but .TOC.@tocbase. */
7120 && strcmp (S_GET_NAME (fixP->fx_addsy), ".TOC.") == 0)
7131 /* We want to use the offset within the toc, not the actual VMA
7183 { "sp", 1 }, { "r.sp", 1 }, { "rtoc", 2 }, { "r.toc", 2 },