1 #!/bin/bash 2 3 # The following symbols (past the first five) are taken from the public headers. 4 # A list of the latter should be available Makefile.sources/LIBDRM_FREEDRENO_H_FILES 5 6 FUNCS=$(nm -D --format=bsd --defined-only ${1-.libs/libdrm_freedreno.so} | awk '{print $3}'| while read func; do 7 ( grep -q "^$func$" || echo $func ) <<EOF 8 __bss_start 9 _edata 10 _end 11 _fini 12 _init 13 fd_bo_cpu_fini 14 fd_bo_cpu_prep 15 fd_bo_del 16 fd_bo_dmabuf 17 fd_bo_from_dmabuf 18 fd_bo_from_fbdev 19 fd_bo_from_handle 20 fd_bo_from_name 21 fd_bo_get_name 22 fd_bo_handle 23 fd_bo_map 24 fd_bo_new 25 fd_bo_ref 26 fd_bo_size 27 fd_device_del 28 fd_device_fd 29 fd_device_new 30 fd_device_new_dup 31 fd_device_ref 32 fd_pipe_del 33 fd_pipe_get_param 34 fd_pipe_new 35 fd_pipe_wait 36 fd_pipe_wait_timeout 37 fd_ringbuffer_del 38 fd_ringbuffer_emit_reloc_ring 39 fd_ringbuffer_flush 40 fd_ringbuffer_new 41 fd_ringbuffer_reloc 42 fd_ringbuffer_reset 43 fd_ringbuffer_set_parent 44 fd_ringbuffer_timestamp 45 fd_ringmarker_del 46 fd_ringmarker_dwords 47 fd_ringmarker_flush 48 fd_ringmarker_mark 49 fd_ringmarker_new 50 EOF 51 done) 52 53 test ! -n "$FUNCS" || echo $FUNCS 54 test ! -n "$FUNCS" 55