GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Lynne (lynne@pars.ee)'s status on Saturday, 20-Aug-2022 13:02:42 JST Lynne Lynne
    Suppose I'm using C and linking to an object file that happens to contain a symbol with a dot in its name.
    Is there any way I could access that symbol's address in C (to call, or to read?) without using assembly.
    I can access the symbol from an assembler easily, it's just that C doesn't let me access it because of the dot.
    In conversation Saturday, 20-Aug-2022 13:02:42 JST from pars.ee permalink
    • Embed this notice
      nya-a1ba (a1ba@expired.mentality.rip)'s status on Saturday, 20-Aug-2022 13:02:40 JST nya-a1ba nya-a1ba
      in reply to
      @lynne

      `void foo(void) __asm__(".foo");`

      works for me. Of course it's not standard but enough for GCC to understand.
      In conversation Saturday, 20-Aug-2022 13:02:40 JST permalink
    • Embed this notice
      nya-a1ba (a1ba@expired.mentality.rip)'s status on Saturday, 20-Aug-2022 13:04:28 JST nya-a1ba nya-a1ba
      in reply to
      • nya-a1ba
      @lynne worked for variable too...

      `extern unsigned char g_var __asm__(".g_var");`
      In conversation Saturday, 20-Aug-2022 13:04:28 JST permalink
    • Embed this notice
      Efi (nap pet) 🦊💤 (efi@chitter.xyz)'s status on Saturday, 20-Aug-2022 13:18:40 JST Efi (nap pet) 🦊💤 Efi (nap pet) 🦊💤
      in reply to

      @lynne I think this is what you're looking for, maybe
      it seems you want \u2E
      but I may be wrong, i don't use C much

      In conversation Saturday, 20-Aug-2022 13:18:40 JST permalink

      Attachments


      1. https://media.chitter.xyz/media_attachments/files/108/853/204/094/508/294/original/0696354ac4dd2c29.png
      nya-a1ba likes this.
    • Embed this notice
      nya-a1ba (a1ba@expired.mentality.rip)'s status on Saturday, 20-Aug-2022 13:23:02 JST nya-a1ba nya-a1ba
      in reply to
      @lynne I don't think it's possible in standard C then :(

      except maaaybe this unicode thing from C11 that was suggested above
      In conversation Saturday, 20-Aug-2022 13:23:02 JST permalink
    • Embed this notice
      Lynne (lynne@pars.ee)'s status on Saturday, 20-Aug-2022 13:23:03 JST Lynne Lynne
      in reply to
      • nya-a1ba
      @a1ba Unfortunately, not portable enough.
      Has to work on everything ffmpeg supports.
      In conversation Saturday, 20-Aug-2022 13:23:03 JST permalink
    • Embed this notice
      nya-a1ba (a1ba@expired.mentality.rip)'s status on Saturday, 20-Aug-2022 13:33:09 JST nya-a1ba nya-a1ba
      in reply to
      @lynne for MSVC you probably could use .def files. Though I'm not sure if it works on static libraries, but it allows renaming symbols.

      What else ffmpeg supports other than typical three C compilers?
      In conversation Saturday, 20-Aug-2022 13:33:09 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.